props/Props.Shop/Adafruit.Tests/AdafruitShopTest.cs

21 lines
571 B
C#
Raw Normal View History

using System.Linq;
using Microsoft.Extensions.Logging;
using Props.Shop.Framework;
using Xunit;
namespace Props.Shop.Adafruit.Tests
{
public class AdafruitShopTest
{
[Fact]
2022-04-24 06:25:46 +00:00
public async void TestSearch()
{
AdafruitShop mockAdafruitShop = new AdafruitShop();
2022-04-24 06:25:46 +00:00
await mockAdafruitShop.Initialize(null, LoggerFactory.Create(builder =>
{
builder.AddXUnit();
}));
Assert.NotEmpty(mockAdafruitShop.Search("raspberry pi", new Filters()).ToEnumerable());
}
}
}