Beispiel #1
0
 public void LoginFail()
 {
     CapitalServiceClient client = new CapitalServiceClient();
     try
     {
         User user = client.Login(new User() { Email = "*****@*****.**", Password = "******" });
     }
     catch (FaultException<CapitalError> ex)
     {
         client.Abort();
         throw ex;
     }
     catch (Exception ex)
     {
         client.Abort();
         throw ex;
     }
     finally
     {
         client.Close();
     }
 }