Exemplo n.º 1
0
        public void SetUp()
        {
            loanRepository   = Mock.Of <ILoanRepository>();
            bookRepository   = Mock.Of <IBookRepository>();
            lendeeRepository = Mock.Of <ILendeeRepository>();

            sut = new LendingService(bookRepository, lendeeRepository, loanRepository);
        }
Exemplo n.º 2
0
 public LibraryService(IBookRepository bookRepository, ILendeeRepository lendeeRepository)
 {
     this.bookRepository   = bookRepository;
     this.lendeeRepository = lendeeRepository;
 }
Exemplo n.º 3
0
 public LendingService(IBookRepository bookRepository, ILendeeRepository lendeeRepository, ILoanRepository loanRepository)
 {
     this.bookRepository   = bookRepository;
     this.lendeeRepository = lendeeRepository;
     this.loanRepository   = loanRepository;
 }