[Order(1)] //Тесты с указанным порядком выполняются раннее других. Нужно для сравнения обновленных баз с чистой установкой. public void CreateCurrentNewBaseTest(SqlServer server) { StartSqlServer(server); //Создаем чистую базу var creator = new TestingCreateDbController(server); var success = creator.StartCreation(ScriptsConfiguration.MakeCreationScript(), currentDdName); Assert.That(success, Is.True); }
static void AutofacStartupConfig(ContainerBuilder containerBuilder) { #region GtkUI containerBuilder.RegisterType <GtkMessageDialogsInteractive>().As <IInteractiveMessage>(); containerBuilder.RegisterType <GtkQuestionDialogsInteractive>().As <IInteractiveQuestion>(); containerBuilder.RegisterType <GtkInteractiveService>().As <IInteractiveService>(); containerBuilder.RegisterType <GtkGuiDispatcher>().As <IGuiDispatcher>(); containerBuilder.RegisterType <GtkRunOperationService>().As <IRunOperationService>(); #endregion GtkUI #region Versioning containerBuilder.RegisterType <ApplicationVersionInfo>().As <IApplicationInfo>(); #endregion #region ErrorReporting containerBuilder.RegisterType <DesktopErrorReporter>().As <IErrorReporter>(); containerBuilder.RegisterType <LogService>().As <ILogService>(); #if DEBUG containerBuilder.Register(c => new ErrorReportingSettings(false, true, false, 300)).As <IErrorReportingSettings>(); #else containerBuilder.Register(c => new ErrorReportingSettings(true, false, true, 300)).As <IErrorReportingSettings>(); #endif containerBuilder.RegisterType <MySqlException1055OnlyFullGroupBy>().As <IErrorHandler>(); containerBuilder.RegisterType <MySqlException1366IncorrectStringValue>().As <IErrorHandler>(); containerBuilder.RegisterType <NHibernateFlushAfterException>().As <IErrorHandler>(); containerBuilder.RegisterType <ConnectionIsLost>().As <IErrorHandler>(); #endregion #region Обновления и версии containerBuilder.RegisterModule(new UpdaterAutofacModule()); containerBuilder.Register(c => ScriptsConfiguration.MakeUpdateConfiguration()).AsSelf(); containerBuilder.Register(c => ScriptsConfiguration.MakeCreationScript()).AsSelf(); #endregion #region Временные будут переопределены containerBuilder.RegisterType <GtkWindowsNavigationManager>().AsSelf().As <INavigationManager>().SingleInstance(); containerBuilder.Register((ctx) => new AutofacViewModelsGtkPageFactory(startupContainer)).As <IViewModelsPageFactory>(); containerBuilder.Register(cc => new ClassNamesBaseGtkViewResolver( typeof(UpdateProcessView) )).As <IGtkViewResolver>(); #endregion }