public void GetAssociatedProductsInfoTestMethod()
        {
            IService service = ServiceFactory.getInstance().getService(service_type.GET_ASSOCIATED_PRODUCT);
            GetAssociatedProductsInfoRequest serviceRequest = new GetAssociatedProductsInfoRequest();


            ServiceRequest request = new ServiceRequest(serviceRequest);
            ServiceResponse response = new ServiceResponse();
            service.process(request, response);

            Assert.AreEqual(0, response.returnCode);
        }
Ejemplo n.º 2
0
        private string GetProducts()
        {
            JavaScriptSerializer jss = new JavaScriptSerializer();

            GetAssociatedProductsInfoRequest registerReq = new GetAssociatedProductsInfoRequest();

            ServiceRequest request = new ServiceRequest(registerReq);
            ServiceResponse response = new ServiceResponse();

            IService service = ServiceFactory.getInstance().getService(service_type.GET_ASSOCIATED_PRODUCT);

            service.process(request, response);
            GetAssociatedProductsInfoResponse responseU = (GetAssociatedProductsInfoResponse)response.responseObj;
            return jss.Serialize(responseU.products);
        }