private void ExecuteWithAddressService(Action action)
 {
     WcfServiceHost.InvokeService <IAddressService>
     (
         service =>
     {
         this.AddressService = service;
         action.Invoke();
     }
     );
 }
 private void ExecuteWithCustomerService(Action action)
 {
     WcfServiceHost.InvokeService <ICustomerService>
     (
         service =>
     {
         this.CustomerService = service;
         action.Invoke();
     }
     );
 }
Example #3
0
 public void ServiceThrowsApplicationException()
 {
     WcfServiceHost.InvokeService <ITestService>(ServiceThrowsApplicationExceptionCommand);
 }
Example #4
0
 public void ServiceThrowsBusinessException()
 {
     WcfServiceHost.InvokeService <ITestService>(ServiceThrowsBusinessExceptionCommand);
 }
Example #5
0
 public void ServiceReturnsWarning()
 {
     WcfServiceHost.InvokeService <ITestService>(ServiceReturnsWarningCommand);
 }