コード例 #1
0
        public void GetOutOfNetworkProfile_InvalidUrl_Test()
        {
            ILinkedInAuthorization authorization = new LinkedInAuthorizationMock();
              LinkedInService target = new LinkedInService(authorization);

              ApiRequest apiRequest = new ApiRequest
              {
            Url = "http:\\invalid.url",
            Headers = new Collection<HttpHeader>()
              };

              target.GetOutOfNetworkProfile(apiRequest);
        }
コード例 #2
0
        public void GetOutOfNetworkProfile_InvalidUrl_Test()
        {
            var target = GetLinkedInService();

            ApiRequest apiRequest = new ApiRequest
                {
                    Url = "http:\\invalid.url",
                    Headers = new Collection<HttpHeader>()
                };

            target.GetOutOfNetworkProfile(apiRequest);
        }
コード例 #3
0
        public void GetOutOfNetworkProfile_EmptyUrl_Test()
        {
            ILinkedInAuthorization authorization = new LinkedInAuthorizationMock();
              LinkedInService target = new LinkedInService(authorization);

              ApiRequest apiRequest = new ApiRequest
              {
            Url = string.Empty,
            Headers = new Collection<HttpHeader>()
              };

              target.GetOutOfNetworkProfile(apiRequest);
        }
コード例 #4
0
        public void GetOutOfNetworkProfile_EmptyUrl_Test()
        {
            var target = GetLinkedInService();

            ApiRequest apiRequest = new ApiRequest
                {
                    Url = string.Empty,
                    Headers = new Collection<HttpHeader>()
                };

            target.GetOutOfNetworkProfile(apiRequest);
        }