public void Setup() { _fixture = new Fixture().Customize(new AutoMoqCustomization()); var container = _fixture.Freeze <Mock <IContainer> >(); _sut = _fixture.Build <AutoMappingMapper>().FromFactory( () => new AutoMappingMapper(Mapper.Engine, container.Object)).CreateAnonymous(); }
public void Teardown() { _fixture = null; _sut = null; Mapper.Reset(); }