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();
     }
     );
 }
Пример #3
0
 public void ServiceThrowsApplicationException()
 {
     WcfServiceHost.InvokeService <ITestService>(ServiceThrowsApplicationExceptionCommand);
 }
Пример #4
0
 public void ServiceThrowsBusinessException()
 {
     WcfServiceHost.InvokeService <ITestService>(ServiceThrowsBusinessExceptionCommand);
 }
Пример #5
0
 public void ServiceReturnsWarning()
 {
     WcfServiceHost.InvokeService <ITestService>(ServiceReturnsWarningCommand);
 }