Example #1
0
        public void Should_Call_Service_Via_Wrapper_And_Standard_Svc_Proxy()
        {
            var proxy    = new SampleServiceAsSvcRef1.SampleServiceClient();
            var response = ServiceWrapper <SampleServiceAsSvcRef1.ISampleService> .Use <String> (_ => proxy.UpdateStatus("Frank", 5), Tests._endpointNameForUpdateServiceWithWsdl);

            response.Should().Be("Entity 'Frank' has been updated to status 5");
        }
Example #2
0
        public void Should_Call_Service_Via_Wrapper_And_Standard_Svc_Proxy_2(int id, string expectedName, string expectedCompany)
        {
            var proxy    = new SampleServiceAsSvcRef1.SampleServiceClient();
            var response = ServiceWrapper <SampleServiceAsSvcRef1.ISampleService> .Use <Client> (_ => proxy.GetClient(id), Tests._endpointNameForUpdateServiceWithWsdl);

            response.Id.Should().Be(id);
            response.Name.Should().Be(expectedName);
            response.Company.Should().Be(expectedCompany);
        }