public async Task CanUpdateAsync() { var expected = new TimeEntryDto(); _repository.UpdateAsync(_timeEntry).Returns(expected); var actual = await _controller.UpdateAsync(_timeEntry); actual.Should().Be(expected); }
public async Task <TimeEntryDto> UpdateAsync(TimeEntryDto timeEntry) { await _validationService.ValidateUpdateAsync(timeEntry); return(await _timeEntryRepository.UpdateAsync(timeEntry)); }