public async Task AddAsyncShouldInvokeAddAsyncOnRepository() { await _accountService.AddAsync(1000m, "holiday"); Repository.Verify(x => x.AddAsync(It.IsAny <Account>()), Times.Once); }
public async Task <IActionResult> Create(Account account) { await _accountService.AddAsync(account); return(CreatedAtRoute("GetAccount", new { id = account.Id }, account)); }
public async Task HandleAsync(CreateAccount command) { await _operationService.AddAsync(command.Value, command.Name); }