示例#1
0
        public void GetMapping()
        {
            Mapping mapping = _adapterProvider.GetMapping(
                _settings["ProjectName"], _settings["ApplicationName"]);

            Assert.AreNotEqual(0, mapping.graphMaps.Count);
        }
示例#2
0
        public Mapping GetMapping(string scope, string app)
        {
            try
            {
                OutgoingWebResponseContext context = WebOperationContext.Current.OutgoingResponse;
                context.ContentType = "application/xml";

                return(_adapterProvider.GetMapping(scope, app));
            }
            catch (Exception ex)
            {
                CustomErrorLog objCustomErrorLog = new CustomErrorLog();
                _CustomError = objCustomErrorLog.customErrorLogger(ErrorMessages.errGetMapping, ex, _logger);
                objCustomErrorLog.throwJsonResponse(_CustomError);
                return(null);
            }
        }