public void Setup() { payment = Payment.Create( (TransactionDescription)"Council Tax", DateTime.Parse("03/06/2018"), PaymentType.Create("DDR", "Direct Debit").Value, 210.00, BudgetType.Create("CTAX", "Council Tax"), SpendType.Create("Revenue", "Revenue"), (Note)string.Empty, "", FundType.Create("Revenue", "Revenue")); }
private void InitialiseParameters() { DATERECIEVED = new DateTime(2018, 8, 7); DESCRIPTION = (TransactionDescription)"Builder and Sons"; AMOUNT = 520.00; PAYMENTTYPE_TOADD = PaymentType.Create("CHQ", "Cheque").Value; BUDGETTYPE_TOADD = BudgetType.Create("Building", "Building Maintenance"); FUNDTYPE_TOADD = FundType.Create("Building", "Building Fund"); SPENDTYPE_TOADD = SpendType.Create("Capital", "Capital"); NOTE = (Note)string.Empty; BANKCLEARED = false; CHEQUENUMBER = "000123"; }
private void InitialiseParameters() { DATERECIEVED = new DateTime(2018, 8, 7); DESCRIPTION = (TransactionDescription)"Offering 7/8/2018"; AMOUNT = 230.00; PAYMENTTYPE_TOADD = PaymentType.Create("CSH", "Cash").Value; BUDGETTYPE_TOADD = BudgetType.Create("GeneralIncome", "General Income"); FUNDTYPE_TOADD = FundType.Create("Revenue", "Revenue"); GIFTAIDSTATUS = GiftAidStatus.NotGiftAid; PAYINGINSLIP = "000124"; NOTE = (Note)"Offering taken in the evening"; BANKCLEARED = false; }
private Guid Create() { //Arrange BudgetType budgetType = BudgetType.Create(DESCRIPTION, LONG_DESCRIPTION); //Act budgetType.Id = repo.Add(budgetType); //Assert Assert.AreNotEqual(0, budgetType.Id, "Creating new record does not return id"); return(budgetType.Id); }
public void Setup() { income = Income.Create( (TransactionDescription)"Offering 20/05/18", DateTime.Parse("22/05/2018"), PaymentType.Create("CSH", "Cash").Value, 230.00, BudgetType.Create("GeneralIncome", "General Income"), (Note)string.Empty, FundType.Create("Revenue", "Revenue") ); income.GiftAidStatus = GiftAidStatus.NotGiftAid; }