public void Get_WhenCalled_ReturnsPatients()
        {
            // Act
            IEnumerable <Hospital> hospitals = hospitalController.Get();

            // Assert
            Assert.IsAssignableFrom <IEnumerable <Hospital> >(hospitals);
        }
        public void GetAllHospitals()
        {
            //Arrange
            var hospitalRepoSub = Substitute.For <IHospitalRepo>();

            hospitalRepoSub.GetHospitals().Returns(new List <HospitalCentre>());
            var logger     = Substitute.For <ILogger <HospitalController> >();
            var controller = new HospitalController(hospitalRepoSub, logger);

            //Act
            List <HospitalCentre> hList = controller.Get();

            //Assert
            Assert.Empty(hList);
        }