public async void ShouldCallRequestHelperWithFullListUrl()
        {
            // given

            string siteUrl = "http://test.com";
            string token = "some-test-token";

            var requestHelper = new RequestHelper();
            var sharePointService = new SharePointService {
               requestHelper = requestHelper
            };

            // when

            var response = await sharePointService.List(siteUrl, token);

            // then

            Assert.Equal(true, response.Length > 0);
        }
コード例 #2
0
 public async void ShouldReturnAWebResponse()
 {
     var requestHelper = new RequestHelper();
     var response = await requestHelper.GetResponse("http://www.google.com");
     Assert.Equal(true, response.Length > 0);
 }