예제 #1
0
 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);
 }
예제 #2
0
 public StorageDatabase(DetectionSystemDbContext context)
 {
     _context = context;
 }