Пример #1
0
 public CreateShop(
     IShopAppService shopAppService,
     IShopMapper shopMapper)
 {
     this.shopAppService = shopAppService ?? throw new ArgumentNullException(nameof(shopAppService));
     this.shopMapper     = shopMapper ?? throw new ArgumentNullException(nameof(shopMapper));
 }
Пример #2
0
 public CreateBook(
     IBookAppService bookAppService,
     IShopAppService shopAppService,
     IBookMapper bookMapper)
 {
     this.bookAppService = bookAppService ?? throw new ArgumentNullException(nameof(bookAppService));
     this.shopAppService = shopAppService ?? throw new ArgumentNullException(nameof(shopAppService));
     this.bookMapper     = bookMapper ?? throw new ArgumentNullException(nameof(bookMapper));
 }
Пример #3
0
 public GetAllSales(
     ISaleAppService saleAppService,
     IShopAppService shopAppService,
     ISaleMapper saleMapper)
 {
     this.saleAppService = saleAppService ?? throw new ArgumentNullException(nameof(saleAppService));
     this.shopAppService = shopAppService ?? throw new ArgumentNullException(nameof(shopAppService));
     this.saleMapper     = saleMapper ?? throw new ArgumentNullException(nameof(saleMapper));
 }
Пример #4
0
 public ImportBooks(
     IBookAppService bookAppService,
     IShopAppService shopAppService,
     IInventoryExcelMapper inventoryExcelMapper)
 {
     this.bookAppService       = bookAppService ?? throw new ArgumentNullException(nameof(bookAppService));
     this.shopAppService       = shopAppService ?? throw new ArgumentNullException(nameof(shopAppService));
     this.inventoryExcelMapper = inventoryExcelMapper ?? throw new ArgumentNullException(nameof(inventoryExcelMapper));
 }
Пример #5
0
        public GAWXController(IWechatAppConfigAppService wechatAppConfigAppService,
                              //IOptions<WeChatTenantSetting> settings,
                              IWeChatOAuthAppService weChatOAuthAppService,
                              IWeChatUserAppService weChatUserAppService,
                              IShopAppService shopAppService
                              //IHostingEnvironment env
                              //IHostingEnvironment env
                              ) : base(wechatAppConfigAppService)
        {
            //_settings = settings.Value;
            //tenantId = _settings.GuangAn;
            InitAppConfigSetting();

            _weChatOAuthAppService = weChatOAuthAppService;
            _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置
            //_appConfiguration = env.GetAppConfiguration();
            _weChatUserAppService = weChatUserAppService;
            _shopAppService       = shopAppService;
        }
Пример #6
0
 public ShopAppService_Tests()
 {
     _shopAppService = Resolve <IShopAppService>();
 }
Пример #7
0
 public DeactivateShop(IShopAppService shopAppService)
 {
     this.shopAppService = shopAppService ?? throw new ArgumentNullException(nameof(shopAppService));
 }
Пример #8
0
 public ProductAppService_Tests()
 {
     _productAppService  = Resolve <IProductAppService>();
     _categoryAppService = Resolve <ICategoryAppService>();
     _shopAppService     = Resolve <IShopAppService>();
 }