public void Delete_ValidId_DataDeleted(int id)
        {
            //act
            var service = new FacilityService(_facilityRepository.Object, _logger.Object);

            service.Delete(id);

            //assert
            Assert.DoesNotContain(_data, d => d.Id == id);
        }
        public void Delete_ValidId_DataDeleted()
        {
            //arrange
            _facilityRepository.Setup(a => a.Delete(It.IsAny <int>())).Callback((int c) =>
            {
                var deleteddata = _data.First(a => a.Id == c);
                _data.Remove(deleteddata);
            });

            //act
            var service = new FacilityService(_facilityRepository.Object);

            service.Delete(1);

            //assert
            Assert.IsTrue(_data.Count == 0);
        }