public void SetUp() { ConnectionMock.SetupDapperAsync(x => x.QueryAsync <Core.Entities.Category>(It.IsAny <string>(), null, null, null, null)) .ReturnsAsync(CategorySamples.All); Assert.DoesNotThrow(() => _result = UnderTest.GetAllAsync()); }
public void SetUp() { ConnectionMock.SetupDapperAsync(x => x.QueryAsync <Core.Entities.Product>(It.IsAny <string>(), null, null, null, null)).ReturnsAsync(ProductSamples.Featured); Assert.DoesNotThrow(() => _result = UnderTest.GetFeaturedProducts()); }
public void SetUp() { ConnectionMock.SetupDapperAsync(x => x.QueryAsync <Core.Entities.Product>(It.IsAny <string>(), It.IsAny <object>(), null, null, null)).ReturnsAsync(ProductSamples.OfCategory); Assert.DoesNotThrow(() => _result = UnderTest.GetProductsByCategoryId(1)); }