Skip to content

Commit

Permalink
Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Sep 5, 2024
1 parent 6d9aaac commit 4e5462d
Show file tree
Hide file tree
Showing 20 changed files with 953 additions and 20 deletions.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "8.0.300"
"version": "8.0.401"
}
}
8 changes: 7 additions & 1 deletion src/Blobify.Tests/Blobify.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\Commands\ArchiveCommandTests\ExistingFiles\ExistingFile.json" />
<None Remove="Resources\Commands\ArchiveCommandTests\NewFiles\NewFile.json" />
<None Remove="Resources\Routes.json" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Blobify\Blobify.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Testing" Version="4.0.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="NUnit.Analyzers" Version="4.3.0" PrivateAssets="all" />
<PackageReference Include="NUnit" Version="4.2.2" />
Expand Down
28 changes: 28 additions & 0 deletions src/Blobify.Tests/Constants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Blobify.Tests.Fixture;
using Microsoft.Extensions.Primitives;

namespace Blobify.Tests;

public static class Constants
{
public static class Request
{
public static readonly Uri BaseUri = new ("https://blobify.tests/", UriKind.Absolute);

public static class Authorization
{
public static readonly KeyValuePair<string, StringValues>? Authorized = new ("Authorization", "Bearer AccessToken");
public static readonly KeyValuePair<string, StringValues>? UnAuthorized = null;
}
}

public static class MediaType
{
public const string Json = "application/json";
}

public static class Tenant
{
public const string Id = "daea2e9b-847b-4c93-850d-2aa6f2d7af33";
}
}
Loading

0 comments on commit 4e5462d

Please sign in to comment.