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); }
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); }