public ProductService(IEfDbSetWrapper <Product> productSetWrapper, IOnLineShopDbContextSaveChanges dbContext) { Guard.WhenArgument(productSetWrapper, "productSetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.productSetWrapper = productSetWrapper; this.dbContext = dbContext; }
public SizeService(IEfDbSetWrapper <Size> SizeSetWrapper, IOnLineShopDbContextSaveChanges dbContext) { Guard.WhenArgument(SizeSetWrapper, "SizeSetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.sizeSetWrapper = SizeSetWrapper; this.dbContext = dbContext; }
public BrandService(IEfDbSetWrapper <Brand> brandSetWrapper, IOnLineShopDbContextSaveChanges dbContext) { Guard.WhenArgument(brandSetWrapper, "BrandSetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.brandSetWrapper = brandSetWrapper; this.dbContext = dbContext; }
public UserService(IEfDbSetWrapper <User> UserSetWrapper, IOnLineShopDbContextSaveChanges dbContext) { Guard.WhenArgument(UserSetWrapper, "UserSetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.userSetWrapper = UserSetWrapper; this.dbContext = dbContext; }
public OrderDetailsService(IEfDbSetWrapper <OrderDetail> orderDetailsSetWrapper, IOnLineShopDbContextSaveChanges dbContext) { Guard.WhenArgument(orderDetailsSetWrapper, "orderDetailsSetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.orderDetailsSetWrapper = orderDetailsSetWrapper; this.dbContext = dbContext; }
public ContactInfoService(IEfDbSetWrapper <ContactInfo> contactInfoSetWrapper, IOnLineShopDbContextSaveChanges dbContext) { Guard.WhenArgument(contactInfoSetWrapper, "ContactInfoSetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.contactInfoSetWrapper = contactInfoSetWrapper; this.dbContext = dbContext; }
public CategoryService(IEfDbSetWrapper <Category> categorySetWrapper, IOnLineShopDbContextSaveChanges dbContext) { Guard.WhenArgument(categorySetWrapper, "categorySetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.categorySetWrapper = categorySetWrapper; this.dbContext = dbContext; }