public Successful() { db = new EFInMemoryDatabase(); context = db.CreateDataContext <EFDataContext>(); efBorrowedBookRepository = new EFBorrowedBookRepository(context); efUnitOfWork = new EFUnitOfWork(context); sut = new BorrowedBookAppService(efBorrowedBookRepository, efUnitOfWork); }
public FailedBecauseInvalidAgeRange() { db = new EFInMemoryDatabase(); context = db.CreateDataContext <EFDataContext>(); efBorrowedBookRepository = new EFBorrowedBookRepository(context); efUnitOfWork = new EFUnitOfWork(context); sut = new BorrowedBookAppService(efBorrowedBookRepository, efUnitOfWork); }
public BorrowedBookServiceTests() { var db = new EFInMemoryDatabase(); context = db.CreateDataContext <EFDataContext>(); readContext = db.CreateDataContext <EFDataContext>(); _borrowedBookRepository = new EFBorrowedBookRepository(context); _unitOfWork = new EFUnitOfWork(context); sut = new BorrowedBookAppService(_borrowedBookRepository, _unitOfWork); }
public BorrowedBooksController(BorrowedBookService service) { _service = service; }