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); } }
public void GetScopes() { List <ScopeProject> scopes = _adapterProvider.GetScopes(); Assert.AreNotEqual(0, scopes.Count); }