Skip to content

Instantly share code, notes, and snippets.

@obegendi
Created July 21, 2019 16:24
Show Gist options
  • Save obegendi/7a71f56c80055ac3c628fa7c49434523 to your computer and use it in GitHub Desktop.
Save obegendi/7a71f56c80055ac3c628fa7c49434523 to your computer and use it in GitHub Desktop.
[Fact]
public void ProductRatingShouldNotNull()
{
//Arrange
var dbServiceMock = new Mock<IDbService>();
dbServiceMock.Setup(x => x.GetRatingDataAsync(It.IsAny<object>()))
.ReturnsAsync(() => {return List<RatingDto>();});
var creditCardServices = new creditCardServices(dbServiceMock);
//Act
var sut = creditCardServices.GetProductAverageRating();
//Assert
sut.Should().NotBeNull();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment