public void TestToStringCheque() 
 {
     Cheque cq1 = new Cheque("ABC", "AAA", 15645131);
     PaymentCheque pay1 = new PaymentCheque(cq1, 20.5, 1576);
     Assert.AreEqual("Payment: Cheque\nCheque Book Name: ABC\nBank: AAA\nAccount Number: 15645131\nAmount: 20,5\nCheque Number: 1576", pay1.ToString());
 
 }
        /// <summary>
        /// Bootstrapper for the expense
        /// </summary>
        private void ExpenseBoot()
        {
            List<ExpenseType> types = PersistenceFactory.GetFactory().GetRepository().GetExpenseTypeRepository().All();
            List<PaymentMethod> methods = PersistenceFactory.GetFactory().GetRepository().GetPaymentMethodRepository().All();
            IExpenseRepository repo = PersistenceFactory.GetFactory().GetRepository().GetExpenseRepository();

            Payment pay1 = new Payment(methods[0], 15);
            repo.Save(new Expense(types[0], pay1, new DateTime(2013, 12, 30, 15, 30, 00), "MacDonalds"));

            PaymentCheque pay2 = new PaymentCheque(methods[2], 23, 1257);
            repo.Save(new Expense(types[2], pay2, new DateTime(2013, 08, 03, 10, 58, 00), "Soccer"));

            repo.Save(new Expense(types[2], pay2, new DateTime(2014, 01, 19, 10, 58, 00), "Soccer 2"));
        }