// setup inmemory database
        public ReviewsControllerTests()
        {
            var options = new DbContextOptionsBuilder <rmldbContext>()
                          .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString())
                          .EnableSensitiveDataLogging()
                          .Options;

            _context = new rmldbContext(options);
            _context.Database.EnsureCreated();
        }
Example #2
0
 public RegisterModel(rmldbContext context)
 {
     _context = context;
 }
Example #3
0
 public EditModel(rmldbContext context)
 {
     _context = context;
 }
Example #4
0
 public IndexModel(ISchoolService schoolService, rmldbContext context)
 {
     _schoolService = schoolService;
     _context       = context;
 }
Example #5
0
 public ReviewsController(rmldbContext context)
 {
     _context = context;
 }
Example #6
0
 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;
 }