Example #1
0
        public void GetDataComGenVariableStartWithTest()
        {
            GetDataComGenVariableStartWithRequest request = new GetDataComGenVariableStartWithRequest();

            request.variableStartWith = _genVariableGetDataComGenVariableStartWith.ValueName;

            GetDataComGenVariableStartWithResponse response = _genVariableService.GetDataComGenVariableStartWith(request);

            Assert.IsTrue(response.Messages.Count == 0, "Failed Get data by Variable Start With");
        }
Example #2
0
        public GetDataComGenVariableStartWithResponse GetDataComGenVariableStartWith(GetDataComGenVariableStartWithRequest request)
        {
            GetDataComGenVariableStartWithResponse response = new GetDataComGenVariableStartWithResponse();

            try
            {
                List <GenVariable> _listGenVariable = _genVariableRepo.GetDataComGenVariableStartWith(request.variableStartWith);
                response.GenVariableList.AddRange(_listGenVariable);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
            return(response);
        }