public StorageDatabaseUnitTest() { // _context = new DetectionSystemDbContext(new DbContextOptionsBuilder().UseSqlite("Data Source = test.db").Options); _context = new DetectionSystemDbContext(new DbContextOptionsBuilder().UseInMemoryDatabase(Guid.NewGuid().ToString()).Options); _context.Database.EnsureCreated(); _storageDatabase = new StorageDatabase(_context); }
public StorageDatabase(DetectionSystemDbContext context) { _context = context; }