Ejemplo n.º 1
0
        public BookService(IEFRepository <Book> bookSetWrapper)
        {
            //Guard.WhenArgument(bookSetWrapper, "bookSetWrapper").IsNull().Throw();
            //Guard.WhenArgument(authorSetWrapper, "authorSetWrapper").IsNull().Throw();
            //Guard.WhenArgument(categorySetWrapper, "categorySetWrapper").IsNull().Throw();

            this.bookSetWrapper     = new EFRepository <Book>(db);
            this.bookElementService = new BookElementService(new EFRepository <BookElement>(db));
        }
Ejemplo n.º 2
0
 public AuthorsController()
 {
     this.bookElementService = new BookElementService(new EFRepository <BookElement>(this.db));
 }