Last active
July 21, 2019 16:23
-
-
Save obegendi/44e4972e95fc404548ed8e6ec963d9eb 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>())) | |
| .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