public void Can_send_SoapRequest() { var client = new Soap12ServiceClient(Config.ServiceStackBaseUri); // var client = new Soap12ServiceClient("http://test.servicestack.net"); var request = new GetStuff { SummaryDate = DateTime.Parse("2018-04-26"), SummaryEndDate = DateTime.Parse("2018-04-26"), Symbol = "TOU", Email = "*****@*****.**", IsEnabled = true, }; var response = client.Send(request); Assert.That(response.SummaryDate, Is.EqualTo(request.SummaryDate)); Assert.That(response.SummaryEndDate, Is.EqualTo(request.SummaryEndDate)); Assert.That(response.Symbol, Is.EqualTo(request.Symbol)); Assert.That(response.Email, Is.EqualTo(request.Email)); Assert.That(response.IsEnabled, Is.EqualTo(request.IsEnabled)); }
public object Any(GetStuff request) => request.ConvertTo <GetStuffResponse>();