private MassVoucher GetCurrentVoucher() { MassVoucher massVoucher = new MassVoucher { Amount = Amount, Project = SelectedProject, Head = SelectedHead, VoucherType = SelectedVoucherType, VoucherSerialNo = VoucherSerialNo, VoucherDate = VoucherDate, JVDebitOrCredit = SelectedJVDebitOrCredit, ContraType = SelectedContraType, IsCheque = IsPaymentInCheque, IsFixedAsset = IsFixedAsset, ChequeNo = ChequeNo, ChequeDate = ChequeDate, BankName = BankName, FixedAssetName = FixedAssetParticulars, FixedAssetDepreciationRate = FixedAssetDepreciationRate, Tag = GetTag(), Narration = Narration, FinancialYear = _parameterManager.GetCurrentFinancialYear() }; return(massVoucher); }
public void GetCurrentFinantialYearWillBeTodaysYear() { string expected = "2012"; string actual = _parameterManager.GetCurrentFinancialYear(); Assert.AreEqual(expected, actual, "Current finantial year will be create year. ie today"); }