BudgetAnalyser.Engine.UnitTest.Services.TransactionManagerServiceTest.LoadStatementModelAsync_ShouldReturnAStatementModel_GivenValidStorageKey C# (CSharp) 메소드

LoadStatementModelAsync_ShouldReturnAStatementModel_GivenValidStorageKey() 개인적인 메소드

private LoadStatementModelAsync_ShouldReturnAStatementModel_GivenValidStorageKey ( ) : System.Threading.Tasks.Task
리턴 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