Esempio n. 1
0
        public void TestGetChangeDetail_SameInstance()
        {
            OtherFunds otherFunds          = new OtherFunds("1.0", null, null, null, null, null);
            string     programSponsorFunds = null;
            var        receivedUsGovtFunds = true;
            var        printForm           = true;
            var        financialInfo       = new FinancialInfo(
                printForm: printForm,
                receivedUSGovtFunds: receivedUsGovtFunds,
                programSponsorFunds: programSponsorFunds,
                otherFunds: otherFunds);

            var changeDetail = financialInfo.GetChangeDetail(financialInfo);

            Assert.IsFalse(changeDetail.HasChanges());
        }
Esempio n. 2
0
        public void TestGetChangeDetail_HasChangeInChild()
        {
            OtherFunds otherFunds          = new OtherFunds("1.0", null, null, null, null, null);
            string     programSponsorFunds = null;
            var        receivedUsGovtFunds = true;
            var        printForm           = true;
            var        financialInfo       = new FinancialInfo(
                printForm: printForm,
                receivedUSGovtFunds: receivedUsGovtFunds,
                programSponsorFunds: programSponsorFunds,
                otherFunds: otherFunds);

            OtherFunds someOtherFunds     = new OtherFunds("2.0", null, null, null, null, null);
            var        otherFinancialInfo = new FinancialInfo(
                printForm: printForm,
                receivedUSGovtFunds: receivedUsGovtFunds,
                programSponsorFunds: programSponsorFunds,
                otherFunds: someOtherFunds);

            var changeDetail = financialInfo.GetChangeDetail(otherFinancialInfo);

            Assert.IsTrue(changeDetail.HasChanges());
        }