mirror of
https://github.com/ckaczor/ChrisKaczor.MinifluxClient.git
synced 2026-02-16 10:58:35 -05:00
Initial commit
This commit is contained in:
1
Test/MSTestSettings.cs
Normal file
1
Test/MSTestSettings.cs
Normal file
@@ -0,0 +1 @@
|
||||
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
|
||||
22
Test/Test.csproj
Normal file
22
Test/Test.csproj
Normal file
@@ -0,0 +1,22 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MSTest" Version="4.0.0-preview.25465.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Library\MinifluxClient.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
22
Test/Test1.cs
Normal file
22
Test/Test1.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using ChrisKaczor.MinifluxClient;
|
||||
|
||||
namespace Test;
|
||||
|
||||
[TestClass]
|
||||
public sealed class Test
|
||||
{
|
||||
[TestMethod]
|
||||
public async Task TestMethod1()
|
||||
{
|
||||
var client = new MinifluxClient("", "");
|
||||
|
||||
var categories = await client.GetCategories();
|
||||
|
||||
var feeds = await client.GetFeeds();
|
||||
|
||||
foreach (var feed in feeds)
|
||||
{
|
||||
var feedEntries = await client.GetFeedEntries(feed.Id, SortField.PublishedAt, SortDirection.Descending);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user