protected override IWorkTaskService CreateService() { var settings = new CommonDatabaseSettings(); var database = new WorkTaskDatabase(settings); return(new SqlWorkTaskService(database)); }
private IProcessInformationService CreateService() { var settings = new CommonDatabaseSettings(); var database = new ProcessInformationDatabase(settings); return(new SqlProcessInformationService(new IProcessInformationCollector[0], database)); }
protected IStateService CreateService() { var settings = new CommonDatabaseSettings(); var database = new StateDatabase(settings); return(new SqlStateService(database)); }
public SqlScriptServiceTests() { var settings = new CommonDatabaseSettings(); _database = new ScriptDatabase(settings); AssertionOptions.AssertEquivalencyUsing(options => { options.Using <DateTime>(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation)).WhenTypeIs <DateTime>(); options.Using <DateTimeOffset>(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation)).WhenTypeIs <DateTimeOffset>(); return(options); }); }
public ProcessInformationDatabase(CommonDatabaseSettings settings) : base(settings.CommonConnection, settings.AutomaticallyCreateDatabase) { DbObjects = new List <IDatabaseObject> { new ProcessInformationTable() }; if (settings.DestroyCommonDatabase) { Destroy(); } }
private SqlDatabaseConnector CreateConnector() { var commonSettings = new CommonSettings(); var commonDbSettings = new CommonDatabaseSettings() { CommonConnection = new SqlSettings().BifrostConnection }; _stateService = new SqlStateService(new StateDatabase(commonDbSettings)); return(new SqlDatabaseConnector( new SqlWorkTaskService(new WorkTaskDatabase(commonDbSettings)), _stateService, new IDatabaseIntegration[] { new SqlServerIntegration(commonSettings, new IDataChangeDiscoverer[] { new ChangetableDataChangeDiscoverer(), new EventTableDataChangeDiscoverer() }) })); }