-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
8,059 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
17176669366108550 | ||
17177852751331060 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
17176669366148605 | ||
17177852751174862 |
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,21 @@ | ||
using AutoFixture; | ||
using AutoFixture.AutoNSubstitute; | ||
|
||
namespace ServiceCollector.Fake.Configuration; | ||
|
||
public static class BaseGenerator | ||
{ | ||
private static readonly IFixture Fixture; | ||
static BaseGenerator() | ||
{ | ||
Fixture = new Fixture().Customize(new AutoNSubstituteCustomization() | ||
{ | ||
ConfigureMembers = true | ||
}); | ||
} | ||
|
||
public static TModel Create<TModel>() | ||
{ | ||
return Fixture.Create<TModel>(); | ||
} | ||
} |
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,12 @@ | ||
namespace ServiceCollector.Fake.Configuration | ||
{ | ||
public class FakeConfiguration<TService> where TService : class | ||
{ | ||
public TService Service { get; } | ||
|
||
public FakeConfiguration(TService service) | ||
{ | ||
Service = service; | ||
} | ||
} | ||
} |
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
30 changes: 30 additions & 0 deletions
30
ServiceCollector.Fake.Configuration/ServiceCollector.Fake.Configuration.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>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<Title>ServiceCollector.Fake.Configuration</Title> | ||
<Authors>Ershad Raoufi</Authors> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageTags>service-collector fake configuration service serviceCollection Collection ServiceCollector</PackageTags> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="AutoFixture" Version="4.18.1" /> | ||
<PackageReference Include="AutoFixture.AutoNSubstitute" Version="4.18.1" /> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="icon.png"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
</PropertyGroup> | ||
</Project> |
Binary file added
BIN
+52.3 KB
...eCollector.Fake.Configuration/bin/Release/ServiceCollector.Fake.Configuration.1.0.0.nupkg
Binary file not shown.
Oops, something went wrong.