public ExampleServiceHelper(IWebServiceHelper serviceHelper, ICacheHandler cacheHandler, ILogHelper logHelper, ISettingsHelper settingsHelper) { this.ServiceHelper = serviceHelper; this.CacheHandler = cacheHandler; this.LogHelper = logHelper; this.SettingsHelper = settingsHelper; }
public MpTransaction(IMpFlex objFlex, IWebServiceHelper objWs, IMessageTextHandler objMsg) { _objFlex = objFlex; _objWs = objWs; _objMsg = objMsg; ListReturnMsgVm = new List <ReturnMsgVm>(); }
public void Dispose() { _objWs.Dispose(); _objWs = null; _objMsg.Dispose(); _objMsg = null; GC.SuppressFinalize(this); }
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 }
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"); }
public SystemCheckerClient(string url, string apiKey) { _client = new WebServiceHelper(url).AddOptions(new WebServiceHelperOptions { Headers = new Dictionary <string, string> { ["ApiKey"] = apiKey } }); }
// 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(); }
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 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>(); } }
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(); }
public SubmitApi(IWebServiceHelper wsHelper, IMessageTextHandler errCode, IMpFlex objFlex) { GetWsObj = wsHelper; GetMsgObj = errCode; GetFlexObj = objFlex; }
public string MakeWebServiceCall(IWebServiceHelper webServiceHelper) { string returnString = webServiceHelper.MakeWebServiceRequest(); return(returnString); }
public SnipApi(IWebServiceHelper wsHelper, IMessageTextHandler errCode) { _wsHelper = wsHelper; _errCode = errCode; }
public AuthorisationService(IWebServiceHelper webServiceHelper) { _webServiceHelper = webServiceHelper; }
public AuthenticationApi(IWebServiceHelper objWs, IMessageTextHandler objMsg) { _objWs = objWs; _objMsg = objMsg; }
public static void AddServiceRequestExpectation(IWebServiceHelper webServiceHelper) { Expect.On(webServiceHelper).Call(webServiceHelper.MakeWebServiceRequest()).Return("This Was Mocked"); }
public OperationApi(IWebServiceHelper objWs) { _objWs = objWs; }
public PassFailApi(IWebServiceHelper wsHelper, IMessageTextHandler errCode, IMpFlex objFlex) { GetWsObj = wsHelper; GetMsgObj = errCode; _objFlex = objFlex; }
public SnApi(IWebServiceHelper objWs, IMessageTextHandler objMsg, IMpFlex objFlex) { GetWsObj = objWs; GetMsgObj = objMsg; GetFlexObj = objFlex; }
public AcumaticaNetworkProvider(IBrowserHelper browserHelper, IWebServiceHelper webServiceHelper, ISmartShipmentMessagesProvider messagesProvider) { _browserHelper = browserHelper; _webServiceHelper = webServiceHelper; _messagesProvider = messagesProvider; }
public UserApi(IWebServiceHelper wsHelper) { _wsHelper = wsHelper; }
public ControlBuilder(IMpFlex objFlex, IWebServiceHelper objWs, IMessageTextHandler objMsg) { _objFlex = objFlex; _objWs = objWs; _objMsg = objMsg; }