Пример #1
0
 public void GetOrderDetailVmTestThrowsUriFormatException740()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         WsHelper          wsHelper;
         SoApi             soApi;
         WorkOrderDetailVm workOrderDetailVm;
         FormatValidate    s0 = new FormatValidate();
         wsHelper =
             new WsHelper((string)null, (IFormatValidate)s0, (IMessageTextHandler)null);
         wsHelper.ReturnMsg      = (ReturnMsgVm)null;
         wsHelper.ReturnAsModel  = false;
         wsHelper.TokenAccessKey = (string)null;
         wsHelper.UserId         = 0;
         disposables.Add((IDisposable)wsHelper);
         soApi = new SoApi
                     ((IWebServiceHelper)wsHelper, (IMessageTextHandler)null, (IMpFlex)null);
         soApi.ReturnMsg       = (ReturnMsgVm)null;
         soApi.ListReturnMsgVm = (List <ReturnMsgVm>)null;
         soApi.Result          = EnumResult.Cancel;
         soApi.GetFlexObj      = (IMpFlex)null;
         soApi.Operation       = (string)null;
         soApi.FormObject      = (object)null;
         soApi.ShopOrder       = (string)null;
         soApi.ShopOrderName   = (string)null;
         soApi.LoginInfo       = (LoginInfoVm)null;
         soApi.RouteDetail     = (RouteDetailOperationStepVm)null;
         disposables.Add((IDisposable)soApi);
         workOrderDetailVm = this.GetOrderDetailVmTest(soApi, "");
         disposables.Dispose();
     }
 }
Пример #2
0
        public FrmLogin()
        {
            _hostUrl = ConfigurationManager.AppSettings["hosturl"];
            _objMsg  = new MessageTextHandler();
            IFormatValidate objFv = new FormatValidate();

            _objWs = new WsHelper(_hostUrl, objFv, _objMsg)
            {
                ReturnAsModel = true
            };
            _objFlex = new MpFlex()
            {
                Url = _objWs.HostAddress
            };
            _objControlBuilder = new ControlBuilder(_objFlex, _objWs, _objMsg);
            InitializeComponent();
        }