22 lines
470 B
22 lines
470 B
3 years ago
|
using AutoFixture;
|
||
|
using AutoFixture.AutoNSubstitute;
|
||
|
|
||
2 years ago
|
namespace Recyclarr.TestLibrary.AutoFixture;
|
||
3 years ago
|
|
||
|
public static class NSubstituteFixture
|
||
|
{
|
||
|
public static Fixture Create()
|
||
|
{
|
||
3 years ago
|
var fixture = new Fixture
|
||
3 years ago
|
{
|
||
|
OmitAutoProperties = true
|
||
|
};
|
||
|
|
||
3 years ago
|
fixture
|
||
|
.Customize(new AutoNSubstituteCustomization {ConfigureMembers = true})
|
||
|
.Customize(new MockFileSystemSpecimenBuilder());
|
||
3 years ago
|
|
||
|
return fixture;
|
||
|
}
|
||
|
}
|