예제 #1
0
 public DealsController() : this(new VoucherService(new VoucherRepository(IoC.Instance().For <IDatabase>())), UserSessionService.Instance())
 {
 }
예제 #2
0
 public BasketController() : this(UserSessionService.Instance(),
                                  new BasketService(new OrderRepository(IoC.Instance().For <IDatabase>()), UserSessionService.Instance(), new VoucherService(new VoucherRepository(IoC.Instance().For <IDatabase>()))))
 {
 }
예제 #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())
 {
 }
예제 #4
0
 public RegisterController() : this(UserSessionService.Instance(),
                                    new UserService(new UserRepository(IoC.Instance().For <IDatabase>(), new Hasher())))
 {
 }
예제 #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>()))))
 {
 }