public async Task WhenAsync(MergePatchLocatorTypeDto c)
        {
            var idObj         = (c as IMergePatchLocatorType).LocatorTypeId;
            var uriParameters = new LocatorTypeUriParameters();

            uriParameters.Id = idObj;

            var req  = new LocatorTypePatchRequest(uriParameters, (MergePatchLocatorTypeDto)c);
            var resp = await _ramlClient.LocatorType.Patch(req);

            LocatorTypeProxyUtils.ThrowOnHttpResponseError(resp);
        }
        public async Task <ILocatorTypeState> GetAsync(string locatorTypeId)
        {
            ILocatorTypeState state = null;
            var idObj         = locatorTypeId;
            var uriParameters = new LocatorTypeUriParameters();

            uriParameters.Id = idObj;

            var req = new LocatorTypeGetRequest(uriParameters);

            var resp = await _ramlClient.LocatorType.Get(req);

            LocatorTypeProxyUtils.ThrowOnHttpResponseError(resp);
            state = (resp.Content == null) ? null : resp.Content.ToLocatorTypeState();
            return(state);
        }
        public async Task WhenAsync(DeleteLocatorTypeDto c)
        {
            var idObj         = (c as IDeleteLocatorType).LocatorTypeId;
            var uriParameters = new LocatorTypeUriParameters();

            uriParameters.Id = idObj;

            var q = new LocatorTypeDeleteQuery();

            q.CommandId   = c.CommandId;
            q.RequesterId = c.RequesterId;
            q.Version     = Convert.ToString(c.Version);

            var req = new LocatorTypeDeleteRequest(uriParameters);

            req.Query = q;

            var resp = await _ramlClient.LocatorType.Delete(req);

            LocatorTypeProxyUtils.ThrowOnHttpResponseError(resp);
        }