Beispiel #1
0
        public async Task UpdateListing_WithInvalidApiKeyThrowsException()
        {
            var listingProperties = new ListingProperties();

            listingProperties.Title        = "Test";
            listingProperties.BodyMarkdown = "";
            listingProperties.Category     = ListingCategory.Mentors;

            var listingService = new ListingsService(BaseUri, HttpClient);
            await listingService.UpdateListingAsync("NotARealApiKey", 1635, ListingAction.Update, listingProperties);
        }
Beispiel #2
0
 public async Task UpdateListingBump_WithInvalidApiKeyThrowsException()
 {
     var listingService = new ListingsService(BaseUri, HttpClient);
     await listingService.UpdateListingAsync("NotARealApiKey", 1635, ListingAction.Bump, null);
 }