public DatabaseServiceBaseTests() { _mockLogger = new Mock <ILogger>(MockBehavior.Strict); var mockDbContext = new Mock <DbContext>(MockBehavior.Strict); _service = new FakeDatabaseServiceBase( _mockLogger.Object, mockDbContext.Object ); }
public DatabaseServiceBaseTests() { var logger = new NullLogger <DatabaseServiceBaseTests>(); var dbContextOptions = new DbContextOptionsBuilder <FakeDbContext>() .UseSqlite("DataSource=:memory:") .Options; var dbContext = new FakeDbContext(dbContextOptions); _service = new FakeDatabaseServiceBase(logger, dbContext); }