public void Should_Call_Service_Via_Wrapper_And_Standard_Svc_Proxy_With_Messages() { var proxy = new SampleServiceAsSvcRef2.SampleServiceClient(); var response = ServiceWrapper <SampleServiceAsSvcRef2.ISampleService> .Use <SampleServiceAsSvcRef2.UpdateStatusResponse> ( _ => proxy.UpdateStatus(new SampleServiceAsSvcRef2.UpdateStatusRequest("Frank", 5)), Tests._endpointNameForUpdateServiceWithWsdlAndMessages); response.UpdateStatusResult.Should().Be("Entity 'Frank' has been updated to status 5"); }
public void Should_Call_Service_Via_Wrapper_And_Standard_Svc_Proxy_With_Messages_2(int id, string expectedName, string expectedCompany) { var proxy = new SampleServiceAsSvcRef2.SampleServiceClient(); var response = ServiceWrapper <SampleServiceAsSvcRef2.ISampleService> .Use <SampleServiceAsSvcRef2.GetClientResponse> ( _ => proxy.GetClient(new SampleServiceAsSvcRef2.GetClientRequest(id)), Tests._endpointNameForUpdateServiceWithWsdlAndMessages); response.GetClientResult.Id.Should().Be(id); response.GetClientResult.Name.Should().Be(expectedName); response.GetClientResult.Company.Should().Be(expectedCompany); }