예제 #1
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        public BaseTestsFixture()
        {
            Context = ApplicationContextFactory.Create();

            var configurationProvider = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile <AnimalProfile>();
                cfg.AddProfile <QRCodeProfile>();
            });

            Mapper = configurationProvider.CreateMapper();
        }
예제 #2
0
 /// <summary>
 /// Разрушить контекст.
 /// </summary>
 public void Dispose()
 {
     ApplicationContextFactory.Destroy(Context);
 }