コード例 #1
0
 public ExampleServiceHelper(IWebServiceHelper serviceHelper, ICacheHandler cacheHandler, ILogHelper logHelper, ISettingsHelper settingsHelper)
 {
     this.ServiceHelper  = serviceHelper;
     this.CacheHandler   = cacheHandler;
     this.LogHelper      = logHelper;
     this.SettingsHelper = settingsHelper;
 }
コード例 #2
0
ファイル: MpTransaction.cs プロジェクト: cpuriwat/8mp
 public MpTransaction(IMpFlex objFlex, IWebServiceHelper objWs, IMessageTextHandler objMsg)
 {
     _objFlex        = objFlex;
     _objWs          = objWs;
     _objMsg         = objMsg;
     ListReturnMsgVm = new List <ReturnMsgVm>();
 }
コード例 #3
0
ファイル: AuthenticationApi.cs プロジェクト: cpuriwat/8mp
 public void Dispose()
 {
     _objWs.Dispose();
     _objWs = null;
     _objMsg.Dispose();
     _objMsg = null;
     GC.SuppressFinalize(this);
 }
コード例 #4
0
ファイル: CustomMpUserControl.cs プロジェクト: cpuriwat/8mp
 public CustomMpUserControl(IMpFlex objFlex, IWebServiceHelper objWs, IMessageTextHandler objMsg, object formObject, string operation, IControlBuilder objObjControlBuild)
 {
     ObjControlBuilder = objObjControlBuild;
     //_objFlex = objFlex;
     //_objWs = objWs;
     //_objMsg = objMsg;
     _formObject = formObject;
     _operation  = operation;
     _hook       = new HookApi(objFlex, objWs); // need to do this because hook will raise event back to UC
 }
コード例 #5
0
        public void ServiceRequest()
        {
            Mock <IWebServiceHelper> moqWrapper      = new Mock <IWebServiceHelper>();
            string            response               = "This Was Moq'ed";
            IWebServiceHelper mockedWebServiceHelper = MoqHelper.GetMockedServiceCall(moqWrapper, response);
            MainProgram       testThread             = new MainProgram(_config);
            var returnString = testThread.MakeWebServiceCall(mockedWebServiceHelper);

            Assert.That(returnString == "This Was Moq'ed");
        }
コード例 #6
0
 public SystemCheckerClient(string url, string apiKey)
 {
     _client = new WebServiceHelper(url).AddOptions(new WebServiceHelperOptions
     {
         Headers = new Dictionary <string, string>
         {
             ["ApiKey"] = apiKey
         }
     });
 }
コード例 #7
0
ファイル: MdiMp.cs プロジェクト: cpuriwat/8mp
        // Private m_toolbox As MpToolbox

        public MdiMp(IWebServiceHelper objWs, IMpFlex objFlex, IMessageTextHandler objMsg, IControlBuilder objControlBuilder)
        {
            _objWs         = objWs;
            _objFlex       = objFlex;
            _objFlex.Form  = this;
            _objC          = objControlBuilder;
            _objMsg        = objMsg;
            _objOperatrion = new OperationApi(objWs);
            InitializeComponent();
        }
コード例 #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)
        }
コード例 #9
0
 public ParamItemApi(IWebServiceHelper objWs, IMessageTextHandler objMsg, IMpFlex objFlex, ParameterItemVm parameterItem)
 {
     GetWsObj        = objWs;
     GetMsgObj       = objMsg;
     GetFlexObj      = objFlex;
     ParamItem       = parameterItem;
     ParamItemDetail = GetWsObj.GetParameterItemDetail(ParamItem.slug);
     if (ParamItemValue == null)
     {
         ParamItemValue = new List <ParameterItemValueVm>();
     }
 }
コード例 #10
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();
        }
コード例 #11
0
 public SubmitApi(IWebServiceHelper wsHelper, IMessageTextHandler errCode, IMpFlex objFlex)
 {
     GetWsObj   = wsHelper;
     GetMsgObj  = errCode;
     GetFlexObj = objFlex;
 }
コード例 #12
0
        public string MakeWebServiceCall(IWebServiceHelper webServiceHelper)
        {
            string returnString = webServiceHelper.MakeWebServiceRequest();

            return(returnString);
        }
コード例 #13
0
 public SnipApi(IWebServiceHelper wsHelper, IMessageTextHandler errCode)
 {
     _wsHelper = wsHelper;
     _errCode  = errCode;
 }
コード例 #14
0
 public AuthorisationService(IWebServiceHelper webServiceHelper)
 {
     _webServiceHelper = webServiceHelper;
 }
コード例 #15
0
ファイル: AuthenticationApi.cs プロジェクト: cpuriwat/8mp
 public AuthenticationApi(IWebServiceHelper objWs, IMessageTextHandler objMsg)
 {
     _objWs  = objWs;
     _objMsg = objMsg;
 }
コード例 #16
0
 public static void AddServiceRequestExpectation(IWebServiceHelper webServiceHelper)
 {
     Expect.On(webServiceHelper).Call(webServiceHelper.MakeWebServiceRequest()).Return("This Was Mocked");
 }
コード例 #17
0
ファイル: OperationApi.cs プロジェクト: cpuriwat/8mp
 public OperationApi(IWebServiceHelper objWs)
 {
     _objWs = objWs;
 }
コード例 #18
0
 public PassFailApi(IWebServiceHelper wsHelper, IMessageTextHandler errCode, IMpFlex objFlex)
 {
     GetWsObj  = wsHelper;
     GetMsgObj = errCode;
     _objFlex  = objFlex;
 }
コード例 #19
0
 public SnApi(IWebServiceHelper objWs, IMessageTextHandler objMsg, IMpFlex objFlex)
 {
     GetWsObj   = objWs;
     GetMsgObj  = objMsg;
     GetFlexObj = objFlex;
 }
コード例 #20
0
 public AcumaticaNetworkProvider(IBrowserHelper browserHelper, IWebServiceHelper webServiceHelper, ISmartShipmentMessagesProvider messagesProvider)
 {
     _browserHelper    = browserHelper;
     _webServiceHelper = webServiceHelper;
     _messagesProvider = messagesProvider;
 }
コード例 #21
0
ファイル: UserApi.cs プロジェクト: cpuriwat/8mp
 public UserApi(IWebServiceHelper wsHelper)
 {
     _wsHelper = wsHelper;
 }
コード例 #22
0
ファイル: ControlBuilder.cs プロジェクト: cpuriwat/8mp
 public ControlBuilder(IMpFlex objFlex, IWebServiceHelper objWs, IMessageTextHandler objMsg)
 {
     _objFlex = objFlex;
     _objWs   = objWs;
     _objMsg  = objMsg;
 }