Example #1
0
        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;
        }
Example #2
0
        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;
        }