public HttpRequestMessage BuildRequestMessage(DosCase dosCase) { var dosCheckCapacitySummaryRequest = new DosCheckCapacitySummaryRequest(_configuration.DosUsername, _configuration.DosPassword, dosCase); return(new HttpRequestMessage { Content = new StringContent(JsonConvert.SerializeObject(dosCheckCapacitySummaryRequest), Encoding.UTF8, "application/json") }); }
public void FromDosCaseToDosServicesByClinicalTermRequest_Test() { var dosCase = new DosCase() { CaseId = "xyz", PostCode = "xy1 z23", SearchDistance = 10, Age = "5", Gender = "F", Disposition = 10013, SymptomGroup = 1003, SymptomDiscriminator = 2010, NumberPerType = 10 }; var result = Mapper.Map <DosServicesByClinicalTermRequest>(dosCase); AssertValidModel(result); }