常用方法
常用方法
常用方法
常用方法
public void TestGetByMinRating() { var service = new MoviesService(_context); Assert.AreEqual(2, service.GetAllAboveRating(5).Count); Assert.AreEqual(1, service.GetAllAboveRating(7).Count); Assert.AreEqual(2, service.GetAllAboveRating(2).Count); Assert.AreEqual(0, service.GetAllAboveRating(10).Count); }