public void TestSetup()
        {
            BoefInitalizeDB db = new BoefInitalizeDB();

            System.Data.Entity.Database.SetInitializer(db);
            AnimalRepo    = UnityConfig.MyResolve <IAnimalRepository>();
            AccessoryRepo = UnityConfig.MyResolve <IAccesoryRepository>();
            CustomerRepo  = UnityConfig.MyResolve <ICustomerRepository>();
            BookingRepo   = UnityConfig.MyResolve <IBookingRepository>();
        }
Exemple #2
0
 public void TestSetup()
 {
     AnimalRepo              = UnityConfig.MyResolve <IAnimalRepository>();
     AccessoryRepo           = UnityConfig.MyResolve <IAccesoryRepository>();
     CustomerRepo            = UnityConfig.MyResolve <ICustomerRepository>();
     BookingRepo             = UnityConfig.MyResolve <IBookingRepository>();
     bookingController       = new BookingsController(BookingRepo, AccessoryRepo, AnimalRepo, CustomerRepo);
     homeController          = new HomeController(BookingRepo);
     animalsController       = new AnimalsController(AnimalRepo, AccessoryRepo);
     accessoriesController   = new AccessoriesController(AccessoryRepo, AnimalRepo);
     bookingManageController = new BookingManageController(BookingRepo, CustomerRepo);
     bookingViewModel        = new BookingViewModel();
 }