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>())))) { }
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()) { }
public RegisterController() : this(UserSessionService.Instance(), new UserService(new UserRepository(IoC.Instance().For <IDatabase>(), new Hasher()))) { }
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>())))) { }