public async Task ShouldAndReturnTheCorrecBalance() { AssumeAccountInRepository(); var expectedBalance = 200; var addRevenueOutput = await _sut.Run(_accountId, "New Revenue", expectedBalance); Assert.Equal(expectedBalance, addRevenueOutput.Balance); }
public async Task <IActionResult> AddExpense(Guid id, [FromBody] AddRevenueRequest addRevenueRequest) { var output = await _addRevenueUseCase.Run(id, addRevenueRequest.Name, addRevenueRequest.Amount); _presenter.Fill(output); return(_presenter.ViewModel); }