Ejemplo n.º 1
0
        public async Task <ActionResult <EstimationResponse> > Get(string estimationId)
        {
            var estimation = await _estimationService.GetEstimationAsync(estimationId);

            return(Ok((EstimationResponse)estimation));
        }
Ejemplo n.º 2
0
 public void GetEstimationAsync_Should_Throw_Exception_When_EstimationId_Not_Cached()
 {
     Assert.ThrowsAsync <ArgumentException>(async() => await _service.GetEstimationAsync("someId"));
 }