Example of how to use AutoFixture with NSubstitute
问题 I use NSubstitute a lot. And I love it. I am just looking into AutoFixture. It seems great! I have seen AutoFixture for NSubstitute and seen a few examples in Moq on how to use this feature. But I can't seem to translate it into NSubstitute. I tried this: var fixture = new Fixture().Customize(new AutoNSubstituteCustomization()); var addDest = Substitute.For<IPerson>(); Using: public interface IPersonEntity { int ID { get; set; } string FirstName { get; set;} string LastName { get; set;}