public DealsController() : this(new VoucherService(new VoucherRepository(IoC.Instance().For <IDatabase>())), UserSessionService.Instance())
 {
 }
 public BasketController() : this(UserSessionService.Instance(),
                                  new BasketService(new OrderRepository(IoC.Instance().For <IDatabase>()), UserSessionService.Instance(), new VoucherService(new VoucherRepository(IoC.Instance().For <IDatabase>()))))
 {
 }
Esempio n. 3
0
 public HomeController() : this(
         new PizzaSizeService(new PizzaSizeRepository(IoC.Instance().For <IDatabase>()),
                              new PizzaToppingRepository(IoC.Instance().For <IDatabase>())),
         new ToppingService(new ToppingRepository(IoC.Instance().For <IDatabase>())),
         new SizeService(new SizeRepository(IoC.Instance().For <IDatabase>())), UserSessionService.Instance())
 {
 }
Esempio n. 4
0
 public RegisterController() : this(UserSessionService.Instance(),
                                    new UserService(new UserRepository(IoC.Instance().For <IDatabase>(), new Hasher())))
 {
 }
Esempio n. 5
0
 public UserController() : this(
         new UserSessionService(new PizzaSizeRepository(IoC.Instance().For <IDatabase>()),
                                new ToppingSizeRepository(IoC.Instance().For <IDatabase>()),
                                new VoucherService(new VoucherRepository(IoC.Instance().For <IDatabase>()))),
         new UserService(new UserRepository(IoC.Instance().For <IDatabase>(), new Hasher())),
         new BasketService(new OrderRepository(IoC.Instance().For <IDatabase>()), UserSessionService.Instance(),
                           new VoucherService(new VoucherRepository(IoC.Instance().For <IDatabase>()))))
 {
 }