public ModuleService(ModuleServiceConfig config, ILogger <ModuleService> logger, //ModuleMessageAdder addMessage, IDbServicesFactory factory) { this.config = config; this.logger = logger; //this.addMessage = addMessage; this.dbFactory = factory; }
public ModuleServiceTests(DbUnitTestSearchFixture fixture) { this.fixture = fixture; this.writer = fixture.GetWriter(); this.searcher = fixture.GetGenericSearcher(); config = new ModuleServiceConfig() { ModuleDataConnectionString = "Data Source=moduledata;Mode=Memory;Cache=Shared" }; service = new ModuleService(config, fixture.GetService <ILogger <ModuleService> >(), fixture.dbFactory); masterconnection = new SqliteConnection(config.ModuleDataConnectionString); masterconnection.Open(); fixture.ResetDatabase(); }