public void TestGetEVPersonTypeFinancialInfo() { string binationalCommission = "commission"; string personal = "peronsal"; string evGovt = "ev gov"; Other other = new Other("name", "amount"); USGovernmentFunding usGovt = new USGovernmentFunding(null, null, null, null, null, null); InternationalFunding international = new InternationalFunding(null, null, null, null, null, null); var otherFunds = new OtherFunds( exchangeVisitorGovernment: evGovt, binationalCommission: binationalCommission, personal: personal, usGovernmentFunding: usGovt, internationalFunding: international, other: other); var programSponsorFunds = "prog sponsor funds"; var receivedUsGovtFunds = true; var printForm = true; var financialInfo = new FinancialInfo( printForm: printForm, receivedUSGovtFunds: receivedUsGovtFunds, programSponsorFunds: programSponsorFunds, otherFunds: otherFunds); var instance = financialInfo.GetEVPersonTypeFinancialInfo(); Assert.IsNotNull(instance.OtherFunds); Assert.AreEqual(financialInfo.ProgramSponsorFunds, instance.ProgramSponsorFunds); Assert.AreEqual(financialInfo.ReceivedUSGovtFunds, instance.ReceivedUSGovtFunds); }
public void TestGetEVPersonTypeFinancialInfo_NullOtherFunds() { OtherFunds otherFunds = null; var programSponsorFunds = "prog sponsor funds"; var receivedUsGovtFunds = true; var printForm = true; var financialInfo = new FinancialInfo( printForm: printForm, receivedUSGovtFunds: receivedUsGovtFunds, programSponsorFunds: programSponsorFunds, otherFunds: otherFunds); var instance = financialInfo.GetEVPersonTypeFinancialInfo(); Assert.IsNull(instance.OtherFunds); }