public void FilterByBucket_ShouldReturn1Bucket_GivenUncatergorisedCode()
        {
            var model2 = new StatementModelBuilder()
                .AppendTransaction(
                    new Transaction
                    {
                        Account = StatementModelTestData.ChequeAccount,
                        Amount = -255.65M,
                        BudgetBucket = null,
                        Date = new DateTime(2013, 9, 10),
                    })
                .Merge(this.testData)
                .Build();
            this.testData = model2;
            Arrange();

            var result = this.subject.FilterByBucket(TransactionConstants.UncategorisedFilter);

            this.testData.Output(DateTime.MinValue);
            Assert.AreEqual(1, result.Count());
        }
        public void FilterByBucket_ShouldReturn2Buckets_GivenSurplusBucketCode()
        {
            var model2 = new StatementModelBuilder()
                .AppendTransaction(
                    new Transaction
                    {
                        Account = StatementModelTestData.ChequeAccount,
                        Amount = -255.65M,
                        BudgetBucket = StatementModelTestData.SurplusBucket,
                        Date = new DateTime(2013, 9, 10),
                    })
                .AppendTransaction(
                    new Transaction
                    {
                        Account = StatementModelTestData.ChequeAccount,
                        Amount = -1000M,
                        BudgetBucket = new FixedBudgetProjectBucket("FOO", "Bar", 2000M),
                        Date = new DateTime(2013, 9, 9)
                    })
                .Merge(this.testData)
                .Build();
            this.testData = model2;
            this.budgetBucketRepo = new BucketBucketRepoAlwaysFind();
            Arrange();

            var result = this.subject.FilterByBucket(SurplusBucket.SurplusCode);

            this.testData.Output(DateTime.MinValue);
            Assert.AreEqual(2, result.Count());
        }