Esempio n. 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();
     }
 }
Esempio n. 2
0
 public void DisposeTest273()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         SoApi soApi;
         soApi =
             new SoApi((IWebServiceHelper)null, (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);
         this.DisposeTest(soApi);
         disposables.Dispose();
         Assert.IsNotNull((object)soApi);
         Assert.IsNull(soApi.ReturnMsg);
         Assert.IsNull(soApi.ListReturnMsgVm);
         Assert.AreEqual <EnumResult>(EnumResult.Cancel, soApi.Result);
         Assert.IsNull(soApi.GetWsObj);
         Assert.IsNull(soApi.GetFlexObj);
         Assert.IsNull(soApi.GetMsgObj);
         Assert.AreEqual <string>((string)null, soApi.Operation);
         Assert.IsNull(soApi.FormObject);
         Assert.AreEqual <string>((string)null, soApi.ShopOrder);
         Assert.AreEqual <string>((string)null, soApi.ShopOrderName);
         Assert.IsNull(soApi.LoginInfo);
         Assert.IsNull(soApi.RouteDetail);
     }
 }
Esempio n. 3
0
        public List <WorkOrderVm> GetOrderVmTest01([PexAssumeUnderTest] SoApi target, string prod)
        {
            List <WorkOrderVm> result = target.GetOrderVm(prod);

            return(result);
            // TODO: add assertions to method SoApiTest.GetOrderVmTest01(SoApi, String)
        }
Esempio n. 4
0
        public List <WorkOrderVm> GetProductVmTest([PexAssumeUnderTest] SoApi target)
        {
            List <WorkOrderVm> result = target.GetProductVm();

            return(result);
            // TODO: add assertions to method SoApiTest.GetProductVmTest(SoApi)
        }
Esempio n. 5
0
        public WorkOrderDetailVm GetOrderDetailVmTest([PexAssumeUnderTest] SoApi target, string order)
        {
            WorkOrderDetailVm result = target.GetOrderDetailVm(order);

            return(result);
            // TODO: add assertions to method SoApiTest.GetOrderDetailVmTest(SoApi, String)
        }
Esempio n. 6
0
        public object GetOrderTest([PexAssumeUnderTest] SoApi target)
        {
            object result = target.GetOrder();

            return(result);
            // TODO: add assertions to method SoApiTest.GetOrderTest(SoApi)
        }
Esempio n. 7
0
        public bool CheckWorkOrderTest([PexAssumeUnderTest] SoApi target, string wo)
        {
            bool result = target.CheckWorkOrder(wo);

            return(result);
            // TODO: add assertions to method SoApiTest.CheckWorkOrderTest(SoApi, String)
        }
Esempio n. 8
0
        public SoApi ConstructorTest(
            IWebServiceHelper wsHelper,
            IMessageTextHandler errCode,
            IMpFlex objFlex
            )
        {
            SoApi target = new SoApi(wsHelper, errCode, objFlex);

            return(target);
            // TODO: add assertions to method SoApiTest.ConstructorTest(IWebServiceHelper, IMessageTextHandler, IMpFlex)
        }
 public void CheckWorkOrderTest320()
 {
     using (PexTraceListenerContext.Create())
     {
         using (PexDisposableContext disposables = PexDisposableContext.Create())
         {
             MessageTextHandler messageTextHandler;
             SoApi soApi;
             bool  b;
             messageTextHandler = new MessageTextHandler();
             disposables.Add((IDisposable)messageTextHandler);
             soApi = new SoApi((IWebServiceHelper)null,
                               (IMessageTextHandler)messageTextHandler, (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);
             b = this.CheckWorkOrderTest(soApi, (string)null);
             disposables.Dispose();
             Assert.AreEqual <bool>(true, b);
             Assert.IsNotNull((object)soApi);
             Assert.IsNotNull(soApi.ReturnMsg);
             Assert.AreEqual <string>(" is selected.", soApi.ReturnMsg.ReturnMsg);
             Assert.AreEqual <EnumMessage>
                 (EnumMessage.ValueSelected, soApi.ReturnMsg.ReturnMsgEnum);
             Assert.IsNull(soApi.ListReturnMsgVm);
             Assert.AreEqual <EnumResult>(EnumResult.Cancel, soApi.Result);
             Assert.IsNull(soApi.GetWsObj);
             Assert.IsNull(soApi.GetFlexObj);
             Assert.IsNotNull(soApi.GetMsgObj);
             Assert.AreEqual <string>((string)null, soApi.Operation);
             Assert.IsNull(soApi.FormObject);
             Assert.AreEqual <string>((string)null, soApi.ShopOrder);
             Assert.AreEqual <string>((string)null, soApi.ShopOrderName);
             Assert.IsNull(soApi.LoginInfo);
             Assert.IsNull(soApi.RouteDetail);
         }
     }
 }
Esempio n. 10
0
 public void GetOrderDetailVmTestThrowsNullReferenceException334()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         SoApi             soApi;
         WorkOrderDetailVm workOrderDetailVm;
         soApi =
             new SoApi((IWebServiceHelper)null, (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, (string)null);
         disposables.Dispose();
     }
 }
Esempio n. 11
0
 public void DisposeTest([PexAssumeUnderTest] SoApi target)
 {
     target.Dispose();
     // TODO: add assertions to method SoApiTest.DisposeTest(SoApi)
 }
Esempio n. 12
0
 public void SetFocusTest([PexAssumeUnderTest] SoApi target)
 {
     target.SetFocus();
     // TODO: add assertions to method SoApiTest.SetFocusTest(SoApi)
 }