Пример #1
0
 public LogProvider(IDatabase database, LogDbContext logDbContext, DiskProvider diskProvider, EnvironmentProvider environmentProvider)
 {
     _database = database;
     _logDbContext = logDbContext;
     _diskProvider = diskProvider;
     _environmentProvider = environmentProvider;
 }
Пример #2
0
        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();

            
        }