예제 #1
0
        private async Task <ActivityCategoryDTO> CreateNewWebService()
        {
            var webServiceDTO = FixtureData.BasicWebServiceDTOWithoutId();

            //Act
            string baseUrl            = GetHubApiBaseUrl();
            var    webServicesPostUrl = baseUrl + "WebServices/Post";

            var newWebService = await HttpPostAsync <ActivityCategoryDTO, ActivityCategoryDTO>(webServicesPostUrl, webServiceDTO);

            return(newWebService);
        }