Created
July 21, 2019 16:24
-
-
Save obegendi/7a71f56c80055ac3c628fa7c49434523 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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