public void GetAllFilterByBranch_Test() { // Arrange TestKolgraphEntities context = new TestKolgraphEntities(); var repository = new AppointmentRepository(context); int branchId = 1; // Act IEnumerable <appointment> result = repository.GetAllFilterByBranch(branchId); // Assert Assert.AreEqual(context.appointment.Where(x => x.branchId == branchId).Count(), result.Count()); }