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

            _context = new rmldbContext(options);
            _context.Database.EnsureCreated();
        }
예제 #2
0
 public RegisterModel(rmldbContext context)
 {
     _context = context;
 }
예제 #3
0
 public EditModel(rmldbContext context)
 {
     _context = context;
 }
예제 #4
0
 public IndexModel(ISchoolService schoolService, rmldbContext context)
 {
     _schoolService = schoolService;
     _context       = context;
 }
예제 #5
0
 public ReviewsController(rmldbContext context)
 {
     _context = context;
 }
예제 #6
0
 public BrowseModel(ISchoolService schoolService, rmldbContext context)
 {
     _schoolService = schoolService;
     _context       = context;
 }
예제 #7
0
 public SignInModel(rmldbContext context)
 {
     _context = context;
 }
예제 #8
0
 public IndexModel(rmldbContext context)
 {
     _context = context;
 }
예제 #9
0
 public SchoolService(rmldbContext context)
 {
     _context = context;
 }