Skip to content

Instantly share code, notes, and snippets.

@obegendi
Last active July 21, 2019 16:23
Show Gist options
  • Save obegendi/44e4972e95fc404548ed8e6ec963d9eb to your computer and use it in GitHub Desktop.
Save obegendi/44e4972e95fc404548ed8e6ec963d9eb 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>()))
.Returns(Task.FromResult(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