public void GetCountOfMovieByGrade_TwoInvalidNumbers_ThrowsArguementException(int movie, int grade)
        {
            FakeMovieRatingRepository movieRatingRepository = new FakeMovieRatingRepository();

            movieRatingRepository.Add(new MovieRating(2, 2, 2, DateTime.Now));
            movieRatingRepository.Add(new MovieRating(2, 3, 3, DateTime.Now));
            movieRatingRepository.Add(new MovieRating(2, 3, 3, DateTime.Now));
            movieRatingRepository.Add(new MovieRating(2, 3, 3, DateTime.Now));
            IMovieRatingService movieRatingService = new MovieRatingService(movieRatingRepository);

            Action actual = () => movieRatingService.GetCountOfMovieByGrade(movie, grade);

            Assert.Throws <ArgumentException>(actual);
        }
        public void GetCountOfMovieByGrade_TwoValidNumbers_ReturnsAmountOfMoviesOfGrade(int movie, int grade, int count)
        {
            FakeMovieRatingRepository movieRatingRepository = new FakeMovieRatingRepository();

            movieRatingRepository.Add(new MovieRating(2, 2, 2, DateTime.Now));
            movieRatingRepository.Add(new MovieRating(2, 3, 3, DateTime.Now));
            movieRatingRepository.Add(new MovieRating(2, 3, 3, DateTime.Now));
            movieRatingRepository.Add(new MovieRating(2, 3, 3, DateTime.Now));
            IMovieRatingService movieRatingService = new MovieRatingService(movieRatingRepository);

            int actual = movieRatingService.GetCountOfMovieByGrade(movie, grade);

            Assert.Equal(count, actual);
        }