public void step_12() { Logger.PrintStepName("Step 12"); SubscriberService.SubscriberInterface si = new SubscriberInterfaceClient(); SubscriberService.addDelSOCRequest getRequest = new addDelSOCRequest(); getRequest.inclusionType = "D"; getRequest.soc = soc2; getRequest.effDate = DateTime.Now; getRequest.expDate = DateTime.Now; getRequest.token = token; getRequest.ctn = ctn; try { Logger.PrintAction("Отключение услуги заблокированным пользователем", soc); SubscriberService.addDelSOCResponse requestResponse = si.addDelSOC(getRequest); long s = requestResponse.@return; Logger.PrintAction("Заявка на подключение создана", s.ToString()); } catch (FaultException <UssWsApiException> exception) { Logger.PrintRezult(true, exception.Detail.errorCode + " " + exception.Detail.errorDescription); } catch (Exception ex) { Assertion("Ошибка при подключении услуги: " + ex.Message, Assert.Fail); } }
public void step_05() { Logger.PrintStepName("Step 5"); SubscriberService.SubscriberInterface si = new SubscriberInterfaceClient(); SubscriberService.addDelSOCRequest getRequest = new addDelSOCRequest(); SubscriberService.getRequestListRequest getRequestList = new getRequestListRequest(); getRequestList.token = token; getRequestList.login = login; getRequestList.startDate = DateTime.Now; getRequestList.page = 1; getRequestList.recordsPerPage = 5; string requestId; getRequest.inclusionType = "D"; getRequest.soc = soc; getRequest.ctn = ctn; getRequest.effDate = DateTime.Now; getRequest.expDate = DateTime.Now.AddDays(1); getRequest.token = token; try { Thread.Sleep(15000); Logger.PrintAction("Отключение услуги", soc); SubscriberService.addDelSOCResponse requestResponse = si.addDelSOC(getRequest); long s = requestResponse.@return; Logger.PrintAction("Заявка на отключение услуги создана", requestId = s.ToString()); getRequestList.requestId = Convert.ToInt64(requestId); Thread.Sleep(15000); SubscriberService.getRequestListResponse requestListResponse = si.getRequestList(getRequestList); Logger.PrintAction("Заявка " + requestId, " " + requestListResponse.requestList.requests[0].requestStatus); } catch (FaultException <UssWsApiException> exception) { Logger.PrintRezult(false, exception.Detail.errorCode + " " + exception.Detail.errorDescription); } catch (Exception ex) { Assertion("Ошибка при отключении услуги: " + ex.Message, Assert.Fail); } }