public BookController()
        {
            var repo = new Repository();

            _bookBLL      = new BookBLL(repo);
            _authorBLL    = new AuthorBLL(repo);
            _publisherBLL = new PublisherBLL(repo);
        }
Exemple #2
0
        public BookBLLTest()
        {
            var repo = new Repository();

            publisherBLL = new PublisherBLL(repo);
            authorBLL    = new AuthorBLL(repo);
            bookBLL      = new BookBLL(repo);

            author    = authorBLL.List().FirstOrDefault();
            publisher = publisherBLL.List().FirstOrDefault();
        }
 public AuthorController()
 {
     _authorBLL = new AuthorBLL(new Repository());
 }
Exemple #4
0
 public void InitializeBLL()
 {
     bll = new AuthorBLL();
 }