Пример #1
0
 public List <string> GetIdentifiers()
 {
     return(new List <string>
     {
         CustomerUid.ToString(),
         ProjectUid.ToString(),
         AssetUid.ToString()
     });
 }
Пример #2
0
 public IHeaderDictionary Headers() => new HeaderDictionary
 {
     { HeaderConstants.X_VISION_LINK_CUSTOMER_UID, CustomerUid.ToString() },
     { HeaderConstants.AUTHORIZATION, AuthorizationHeader },
     { HeaderConstants.X_JWT_ASSERTION, JWTAssertion }
 };
Пример #3
0
        public string CallSchedulerWebApi(string routeSuffix, string method, string body = null, HttpStatusCode expectedCode = HttpStatusCode.OK)
        {
            var uri        = GetBaseUri() + routeSuffix;
            var restClient = new RestClientUtil();
            var response   = restClient.DoHttpRequest(uri, method, body, expectedCode, "application/json", CustomerUid.ToString());

            return(response);
        }