Exemplo n.º 1
0
 public DealsController() : this(new VoucherService(new VoucherRepository(IoC.Instance().For <IDatabase>())), UserSessionService.Instance())
 {
 }
Exemplo n.º 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>()))))
 {
 }
Exemplo 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())
 {
 }
Exemplo n.º 4
0
 public RegisterController() : this(UserSessionService.Instance(),
                                    new UserService(new UserRepository(IoC.Instance().For <IDatabase>(), new Hasher())))
 {
 }
Exemplo 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>()))))
 {
 }