BudgetAnalyser.Engine.UnitTest.Ledger.TransferFundsCommandTest.SettingFromLedger_ShouldPopulateAutoMatchingReference_GivenFromAndToLedgersAreDifferent C# (CSharp) Method

SettingFromLedger_ShouldPopulateAutoMatchingReference_GivenFromAndToLedgersAreDifferent() private method

        public void SettingFromLedger_ShouldPopulateAutoMatchingReference_GivenFromAndToLedgersAreDifferent()
        {
            this.subject = new TransferFundsCommand
            {
                FromLedger = new SpentMonthlyLedger
                {
                    BudgetBucket = StatementModelTestData.PhoneBucket,
                    StoredInAccount = StatementModelTestData.ChequeAccount
                },
                ToLedger = new SavedUpForLedger
                {
                    BudgetBucket = StatementModelTestData.InsHomeBucket,
                    StoredInAccount = StatementModelTestData.SavingsAccount
                },
                Narrative = "Foo",
                TransferAmount = 12.34M
            };

            Assert.IsTrue(this.subject.AutoMatchingReference.IsSomething());
        }