added some missing cancellation tokens and fixed incorrect tests
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using AutoFixture;
|
||||
using AutoFixture.AutoMoq;
|
||||
using Moq;
|
||||
|
||||
namespace CoreUnitTests.Infrastructure;
|
||||
|
||||
public class GenericTestContext<TSut>
|
||||
{
|
||||
public GenericTestContext()
|
||||
{
|
||||
Fixture = new Fixture().Customize(new AutoMoqCustomization());
|
||||
}
|
||||
|
||||
protected Mock<T> MockOf<T>()
|
||||
where T : class
|
||||
{
|
||||
return Fixture.Freeze<Mock<T>>();
|
||||
}
|
||||
|
||||
protected IFixture Fixture { get; set; }
|
||||
|
||||
protected TSut Sut { get => Fixture.Create<TSut>(); }
|
||||
}
|
||||
Reference in New Issue
Block a user