Example #1
0
        public ScopeProjects GetScopes()
        {
            try
            {
                OutgoingWebResponseContext context = WebOperationContext.Current.OutgoingResponse;
                context.ContentType = "application/xml";
                return(_adapterProvider.GetScopes());
            }

            catch (Exception ex)
            {
                CustomErrorLog objCustomErrorLog = new CustomErrorLog();
                _CustomError = objCustomErrorLog.customErrorLogger(ErrorMessages.errGetScope, ex, _logger);
                objCustomErrorLog.throwJsonResponse(_CustomError);
                return(null);
            }
        }
Example #2
0
        public void GetScopes()
        {
            List <ScopeProject> scopes = _adapterProvider.GetScopes();

            Assert.AreNotEqual(0, scopes.Count);
        }