diff --git a/PocketSharp.Tests/ReadTests.cs b/PocketSharp.Tests/ReadTests.cs index 8db0478..cdfa158 100644 --- a/PocketSharp.Tests/ReadTests.cs +++ b/PocketSharp.Tests/ReadTests.cs @@ -20,11 +20,7 @@ namespace PocketSharp.Tests [Fact] public async Task ReadArticleTest() { - PocketArticle result = await reader.Read(new PocketItem() - { - ID = "99", - Uri = new Uri("http://frontendplay.com/story/4/http-caching-demystified-part-2-implementation") - }); + PocketArticle result = await reader.Read(new Uri("http://frontendplay.com/story/4/http-caching-demystified-part-2-implementation")); Assert.DoesNotContain("", result.Content); Assert.Contains("

", result.Content); @@ -35,11 +31,7 @@ namespace PocketSharp.Tests [Fact] public async Task ReadArticleWithContainerNoHeadlineTest() { - PocketArticle result = await reader.Read(new PocketItem() - { - ID = "99", - Uri = new Uri("http://frontendplay.com/story/4/http-caching-demystified-part-2-implementation") - }, false, true); + PocketArticle result = await reader.Read(new Uri("http://frontendplay.com/story/4/http-caching-demystified-part-2-implementation"), false, true); Assert.Contains("", result.Content); Assert.DoesNotContain("

", result.Content); @@ -52,11 +44,7 @@ namespace PocketSharp.Tests { await ThrowsAsync(async () => { - await reader.Read(new PocketItem() - { - ID = "99", - Uri = new Uri("http://frontendplayyyyy.com") - }); + await reader.Read(new Uri("http://frontendplayyyyy.com")); }); } @@ -64,11 +52,7 @@ namespace PocketSharp.Tests [Fact] public async Task IsBodyOnlyProperlyResolved() { - PocketArticle result = await reader.Read(new PocketItem() - { - ID = "99", - Uri = new Uri("http://calebjacob.com/tooltipster/") - }); + PocketArticle result = await reader.Read(new Uri("http://calebjacob.com/tooltipster/")); Assert.True(result.Content.Substring(0, 4) == " - /// Readable article - /// - [ImplementPropertyChanged] - public class PocketArticle - { - /// - /// Gets or sets the pocket item ID. - /// - /// - /// The pocket item ID. - /// - public string PocketItemID { get; set; } - - /// - /// Gets or sets the content. - /// - /// - /// The content. - /// - public string Content { get; set; } - - /// - /// Gets or sets the title. - /// - /// - /// The title. - /// - public string Title { get; set; } - - /// - /// Gets or sets the next page URL. - /// - /// - /// The next page URL. - /// - public Uri NextPage { get; set; } - } -}