using AutoFixture; using AutoFixture.AutoMoq; using Moq; namespace CoreUnitTests.Infrastructure; public class GenericTestContext { public GenericTestContext() { Fixture = new Fixture().Customize(new AutoMoqCustomization()); } protected Mock MockOf() where T : class { return Fixture.Freeze>(); } protected IFixture Fixture { get; set; } protected TSut Sut { get => Fixture.Create(); } }