// setup inmemory database public ReviewsControllerTests() { var options = new DbContextOptionsBuilder <rmldbContext>() .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()) .EnableSensitiveDataLogging() .Options; _context = new rmldbContext(options); _context.Database.EnsureCreated(); }
public RegisterModel(rmldbContext context) { _context = context; }
public EditModel(rmldbContext context) { _context = context; }
public IndexModel(ISchoolService schoolService, rmldbContext context) { _schoolService = schoolService; _context = context; }
public ReviewsController(rmldbContext context) { _context = context; }
public BrowseModel(ISchoolService schoolService, rmldbContext context) { _schoolService = schoolService; _context = context; }
public SignInModel(rmldbContext context) { _context = context; }
public IndexModel(rmldbContext context) { _context = context; }
public SchoolService(rmldbContext context) { _context = context; }