This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from justaprogrammer/image-management
Image Management
- Loading branch information
Showing
42 changed files
with
611 additions
and
1,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/SonOfPicasso.Core.IntegrationTests/Services/ImageManagementServiceTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using Autofac.Extras.NSubstitute; | ||
using SonOfPicasso.Data.Repository; | ||
using SonOfPicasso.Data.Tests; | ||
using SonOfPicasso.Testing.Common; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace SonOfPicasso.Core.IntegrationTests.Services | ||
{ | ||
public class ImageManagementServiceTests : DataTestsBase, IDisposable | ||
{ | ||
private readonly AutoSubstitute _autoSubstitute; | ||
|
||
public ImageManagementServiceTests(ITestOutputHelper testOutputHelper) | ||
: base(testOutputHelper) | ||
{ | ||
_autoSubstitute = new AutoSubstitute(); | ||
_autoSubstitute.Provide<Func<UnitOfWork>>(CreateUnitOfWork); | ||
} | ||
|
||
[Fact] | ||
public void CanInitialize() | ||
{ | ||
var imageManagementService = _autoSubstitute.Resolve<Core.Services.ImageManagementService>(); | ||
} | ||
|
||
public new void Dispose() | ||
{ | ||
_autoSubstitute.Dispose(); | ||
base.Dispose(); | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/SonOfPicasso.Core.IntegrationTests/SonOfPicasso.Core.IntegrationTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.0</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="akavache" Version="6.8.1" /> | ||
<PackageReference Include="Autofac" Version="4.9.4" /> | ||
<PackageReference Include="Autofac.Extras.NSubstitute" Version="1.1.0" /> | ||
<PackageReference Include="FluentAssertions" Version="5.9.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0-preview-20190828-03" /> | ||
<PackageReference Include="NSubstitute" Version="4.2.1" /> | ||
<PackageReference Include="NSubstitute.Analyzers.CSharp" Version="1.0.10" /> | ||
<PackageReference Include="Serilog" Version="2.8.0" /> | ||
<PackageReference Include="System.IO.Abstractions.TestingHelpers" Version="6.0.27" /> | ||
<PackageReference Include="xunit" Version="2.4.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\SonOfPicasso.Data.Tests\SonOfPicasso.Data.Tests.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.