Exemplo n.º 1
0
 public CreateShop(
     IShopAppService shopAppService,
     IShopMapper shopMapper)
 {
     this.shopAppService = shopAppService ?? throw new ArgumentNullException(nameof(shopAppService));
     this.shopMapper     = shopMapper ?? throw new ArgumentNullException(nameof(shopMapper));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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;
        }
Exemplo n.º 6
0
 public ShopAppService_Tests()
 {
     _shopAppService = Resolve <IShopAppService>();
 }
Exemplo n.º 7
0
 public DeactivateShop(IShopAppService shopAppService)
 {
     this.shopAppService = shopAppService ?? throw new ArgumentNullException(nameof(shopAppService));
 }
Exemplo n.º 8
0
 public ProductAppService_Tests()
 {
     _productAppService  = Resolve <IProductAppService>();
     _categoryAppService = Resolve <ICategoryAppService>();
     _shopAppService     = Resolve <IShopAppService>();
 }