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)); }
public AuthorsController() { this.bookElementService = new BookElementService(new EFRepository <BookElement>(this.db)); }