예제 #1
0
        public async Task CanUpdateAsync()
        {
            var expected = new TimeEntryDto();

            _repository.UpdateAsync(_timeEntry).Returns(expected);

            var actual = await _controller.UpdateAsync(_timeEntry);

            actual.Should().Be(expected);
        }
예제 #2
0
        public async Task <TimeEntryDto> UpdateAsync(TimeEntryDto timeEntry)
        {
            await _validationService.ValidateUpdateAsync(timeEntry);

            return(await _timeEntryRepository.UpdateAsync(timeEntry));
        }