public CategoryService(IEfDbSetWrapper <Category> categorySetWrapper, ILiveDemoEfDbContextSaveChanges dbContext) { Guard.WhenArgument(categorySetWrapper, "categorySetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.categorySetWrapper = categorySetWrapper; this.dbContext = dbContext; }
public BookService(IEfDbSetWrapper <Book> bookSetWrapper, ILiveDemoEfDbContextSaveChanges dbContext) { Guard.WhenArgument(bookSetWrapper, "bookSetWrapper").IsNull().Throw(); Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw(); this.bookSetWrapper = bookSetWrapper; this.dbContext = dbContext; }