props/Props-Modules/test/Props.Shop/Adafruit.Tests/AdafruitShopTest.cs
Harrison Deng 0b507b90a1 Added identifier and fetch time product listings; Added persistence to AdafruitShop.
Implemented in AdafruitShop.

AdafruitShop Product listing data now persisted.

AdafruitShop configuration now persisted.
2021-08-11 00:27:40 -05:00

19 lines
539 B
C#

using System.Linq;
using Microsoft.Extensions.Logging;
using Props.Shop.Framework;
using Xunit;
namespace Props.Shop.Adafruit.Tests
{
public class AdafruitShopTest
{
[Fact]
public void TestSearch() {
AdafruitShop mockAdafruitShop = new AdafruitShop();
mockAdafruitShop.Initialize(null, LoggerFactory.Create(builder => {
builder.AddXUnit();
}));
Assert.NotEmpty(mockAdafruitShop.Search("raspberry pi", new Filters()).ToEnumerable());
}
}
}