Inheritance: ITransactionManagerService, ISupportsModelPersistence
 public void DetectDuplicateTransactions_ShouldReturnNull_GivenNullStatementModel()
 {
     this.subject = CreateSubject();
     Assert.IsNull(this.subject.DetectDuplicateTransactions());
 }
        public async Task Save_ShouldNotCallStatementRepo_GivenNullStatementModel()
        {
            this.subject = CreateSubject();
            await this.subject.SaveAsync(It.IsAny<ApplicationDatabase>());

            this.mockStatementRepo.Verify(m => m.SaveAsync(It.IsAny<StatementModel>(), It.IsAny<bool>()), Times.Never);
        }
 private void Arrange()
 {
     this.mockStatementRepo
         .Setup(m => m.LoadAsync(It.IsAny<string>(), It.IsAny<bool>()))
         .Returns(Task.FromResult(this.testData));
     this.subject = CreateSubject();
     this.subject.LoadAsync(this.testAppDb).Wait();
 }
        public void PopulateGroupByBucketCollection_ShouldReturnEmpty_GivenStatementModelNotLoaded()
        {
            this.subject = CreateSubject();
            IEnumerable<TransactionGroupedByBucket> result = this.subject.PopulateGroupByBucketCollection(true);

            Assert.IsFalse(result.Any());
        }