コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: LoanDaoTests.cs プロジェクト: piriej/Assignment3
 public LoanDaoTests()
 {
     // Arrange
     _loanHelper = new LoanHelper();
     _loanDao = new LoanDAO(_loanHelper);
 }