예제 #1
0
        public static void Init(TestContext context)
        {
            var kernel = new StandardKernel();

            Config.RegisterServices(kernel);
            logic = kernel.Get <IShopLogic>();
        }
예제 #2
0
 public ShopModel(IAddressLogic addressLogic, ITypeOfShopLogic typeOfShopLogic, IShopLogic shopLogic, IUserLogic userLogic, IRatingLogic ratingLogic)
 {
     _addressLogic    = addressLogic;
     _typeOfShopLogic = typeOfShopLogic;
     _shopLogic       = shopLogic;
     _userLogic       = userLogic;
     _ratingLogic     = ratingLogic;
 }
예제 #3
0
 public ShopController(IShopLogic shopLogic, IConfiguration config)
 {
     _config    = config;
     _shopLogic = shopLogic;
 }
예제 #4
0
 public ShopController(IShopLogic shopLogic, IUserLogic userLogic, IRatingLogic ratingLogic)
 {
     _shopLogic   = shopLogic;
     _userLogic   = userLogic;
     _ratingLogic = ratingLogic;
 }
예제 #5
0
 public OrdersController(ICustomerLogic customerLogic, IShopLogic shopLogic)
 {
     this.customerLogic = customerLogic;
     this._shopLogic    = shopLogic;
 }