/// <summary> /// Конструктор. /// </summary> public BaseTestsFixture() { Context = ApplicationContextFactory.Create(); var configurationProvider = new MapperConfiguration(cfg => { cfg.AddProfile <AnimalProfile>(); cfg.AddProfile <QRCodeProfile>(); }); Mapper = configurationProvider.CreateMapper(); }
/// <summary> /// Разрушить контекст. /// </summary> public void Dispose() { ApplicationContextFactory.Destroy(Context); }