public async Task <ActionResult <EstimationResponse> > Get(string estimationId) { var estimation = await _estimationService.GetEstimationAsync(estimationId); return(Ok((EstimationResponse)estimation)); }
public void GetEstimationAsync_Should_Throw_Exception_When_EstimationId_Not_Cached() { Assert.ThrowsAsync <ArgumentException>(async() => await _service.GetEstimationAsync("someId")); }