public object BidOffer(OfferRequestDTO offerRequestDTO) { if (offerRequestDTO == null) { return(new NotFoundResult()); } var response = _externalProviderService.ProcessRequest(offerRequestDTO.SourceAddress, offerRequestDTO.DestinationAddress, offerRequestDTO.CartoonDimension); if (response == null) { return(new NotFoundResult()); } return(response); }
public void ProcessRequest_ShouldReturnCorrectOutput() { var result = _externalProviderService.ProcessRequest("Delhi", "Chandigarh", new List <string> { "203", "255" }); PrintOutput(result); result.Should().NotBeNull(); }