BudgetAnalyser.Engine.UnitTest.Services.TransactionManagerServiceTest.LoadStatementModelAsync_ShouldReturnAStatementModel_GivenValidStorageKey C# (CSharp) Method

LoadStatementModelAsync_ShouldReturnAStatementModel_GivenValidStorageKey() private method

private LoadStatementModelAsync_ShouldReturnAStatementModel_GivenValidStorageKey ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task LoadStatementModelAsync_ShouldReturnAStatementModel_GivenValidStorageKey()
        {
            StatementModel testStatement = new StatementModelTestHarness();
            testStatement.LoadTransactions(new List<Transaction>());

            this.mockStatementRepo.Setup(m => m.LoadAsync(It.IsAny<string>(), It.IsAny<bool>())).Returns(Task.FromResult(testStatement));

            await this.subject.LoadAsync(this.testAppDb);

            Assert.IsNotNull(this.subject.StatementModel);
        }
TransactionManagerServiceTest