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