public void GetProductById_NonExistingItem_ReturnsEmpty()
        {
            string nonExistingId = "nonExistingId";
            var    result        = ProductRatingService.GetByProductId(nonExistingId);

            Assert.NotNull(result);
        }
        public void GetProductById_ExistingItem_ReturnsSameItem()
        {
            string testProductId = "testProductId";
            var    result        = ProductRatingService.GetByProductId(testProductId);

            Assert.NotNull(result);
            Assert.Equal(testProductId, result.ProductId);
        }
        public void GetProductById_Null_ThrowsArgumentNullException()
        {
            Action actual = () => ProductRatingService.GetByProductId(null);

            Assert.Throws <ArgumentNullException>(actual);
        }