예제 #1
0
        public void GetAllByZehut()
        {
            // Arrange
            var    mockService = new Mock <IPatientService>();
            var    controller  = new PatientController(mockService.Object);
            string zehut       = "111";

            // Act
            IQueryable <PatientModel> response = controller.GetAllByZehut(zehut);

            // Assert
            Assert.IsNotNull(response);
            Assert.AreEqual(response.Where(x => x.Zehut.Contains(zehut)).Count(), response.Count());
        }