예제 #1
0
        public void GetAll_Test()
        {
            MaharajasDbContext context = new MaharajasDbContext();
            var menutest = new MenusController(new Library(new MenusLibrary(context), new PhotoMenusLibrary(context), new ReservationsLibrary(context)));
            HttpResponseMessage response = menutest.GetAll("Breads_and_Rice");

            Assert.IsNotNull(response);
        }
예제 #2
0
 public CustomUserStore_Test()
 {
     this.context = new MaharajasDbContext();
 }
예제 #3
0
 public CustomUserStore(IUserStore <ApplicationUser> userstore, MaharajasDbContext context)
 {
     this.userstore = userstore;
     this.context   = context;
 }
예제 #4
0
 public MenusService(IMaharajasDBContext dbcontext)
 {
     this.dbcontext = (MaharajasDbContext)dbcontext;
 }
예제 #5
0
 public ReservationsService(IMaharajasDBContext dbcontext)
 {
     this.dbcontext = (MaharajasDbContext)dbcontext;
 }