public BaseTest() { var options = new DbContextOptionsBuilder <CatmashEntities>() .UseSqlite("DataSource=:memory:", x => { }) .Options; context = new CatmashEntities(options); context.Database.OpenConnection(); context.Database.EnsureCreated(); }
public CatmashRepository(CatmashEntities context) => this.context = context;