public MockDataProviderModule() { _memberHelper = new MemberHelper(); _memberDAO = new MemberDAO(_memberHelper); _loanHelper = new LoanHelper(); _loanDAO = new LoanDAO(_loanHelper); _bookHelper = new BookHelper(); _bookDao = new BookDAO(_bookHelper); // Setup dates for test data _borrowDate = DateTime.Now; _loanPeriod = new TimeSpan(LoanConstants.LOAN_PERIOD, 0, 0, 0); _dueDate = _borrowDate.Add(_loanPeriod); SetupBookTestData(); SetupMemberTestData(); SetUpLoanTestData(); SetUpTestData(); }
public LoanDaoTests() { // Arrange _loanHelper = new LoanHelper(); _loanDao = new LoanDAO(_loanHelper); }