public void Income_ValidatePayingInSlipIfCheque_False() { income.UpdatePaymentType(PaymentType.Create("CHQ", "Cheque").Value); var actual = income.FieldsValidated(); Assert.IsFalse(actual); }
public MockPaymentTypeViewModel() { PaymentTypes = new List <PaymentType>() { PaymentType.Create("BAC", "Bank Transfer").Value, PaymentType.Create("STO", "Standing Order").Value, PaymentType.Create("CHG", "Charge").Value, }; }
public Result Add(string description, string longDescription) { var result = PaymentType.Create(description, longDescription); if (result.IsSuccess) { repository.Add(result.Value); } return(result); }
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 PaymentType paymentType = PaymentType.Create(DESCRIPTION, LONG_DESCRIPTION).Value; //Act paymentType.Id = repo.Add(paymentType); //Assert Assert.AreNotEqual(0, paymentType.Id, "Creating new record does not return id"); return(paymentType.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; }