示例#1
0
        public BookController()
        {
            var repo = new Repository();

            _bookBLL      = new BookBLL(repo);
            _authorBLL    = new AuthorBLL(repo);
            _publisherBLL = new PublisherBLL(repo);
        }
示例#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();
        }
示例#3
0
 public AuthorController()
 {
     _authorBLL = new AuthorBLL(new Repository());
 }
示例#4
0
 public void InitializeBLL()
 {
     bll = new AuthorBLL();
 }