Example #1
0
        public async Task <List <ResponseCustomerRelation> > CustomerRelationService(RequestCustomerRelation request)
        {
            CustomerRelationOperation op = new CustomerRelationOperation(request);

            op.Execute();
            return(op.response);
        }
Example #2
0
        public void CustomerRelation()
        {
            RequestCustomerRelation request = new RequestCustomerRelation()
            {
                CUSTOMER_NAME     = "pars",
                CUSTOMER_SURNAME  = "basmaz",
                CUSTOMER_NUMBER   = 1,
                EMAIL             = "*****@*****.**",
                INSERT_USER       = "******",
                IDENTIFICATION_ID = 19034546316,
                PHONE_NUMBER      = "5357977314",
                UPDATE_USER       = "******",
                GENDER            = Enum.GetName(typeof(Enums.GENDER), 1),
                PASSWORD          = "******",
                Header            = new Header
                {
                    Device         = (int)DeviceEnum.Device.WEB,
                    OperationTypes = (int)OperationType.OperationTypes.ADD,
                    RequestId      = Guid.NewGuid().ToString(),
                    ApiKey         = "U6l1hKzpZDrgfTaKxpQm3A/6raDiroAI7ueTgMNwhQs=",
                    TokenId        = "IM1guWBb1Ui/6+WA2uSQSqhTASnBL2/h"
                }
            };

            CustomerRelationOperation op = new CustomerRelationOperation(request);

            op.Execute();

            Assert.IsTrue(op.responsedata.header.IsSuccess);
        }
Example #3
0
        public bool CustomerRelationOperation(RequestCustomerRelation request, out List <ResponseCustomerRelation> response)
        {
            CustomerRelationOperation op = new CustomerRelationOperation(request);

            op.Execute();
            response = op.response;
            if (op.response == null && op.response.Count < 1)
            {
                return(false);
            }

            return(true);
        }