public LogProvider(IDatabase database, LogDbContext logDbContext, DiskProvider diskProvider, EnvironmentProvider environmentProvider) { _database = database; _logDbContext = logDbContext; _diskProvider = diskProvider; _environmentProvider = environmentProvider; }
public void Setup() { WithRealDb(); dbContext = Connection.GetLogDbContext(TestDbHelper.ConnectionString); Mocker.SetConstant(dbContext); new DatabaseTarget(Db).Register(); Logger = LogManager.GetCurrentClassLogger(); UniqueMessage = "Unique message: " + Guid.NewGuid().ToString(); }