示例#1
0
        public void GetList_ReturnsAllValid()
        {
            // arrange
            InitializeDisasterCollection(_activeDisaster, _inactiveDisaster);

            // act
            var result = _disasterService.GetList();

            // assert
            Assert.AreEqual(2, result.Count());
        }
        public void WhenNoDisastersReturnAnEmptyList()
        {
            var underTest = new DisasterService(mockService.Object);

            var result = underTest.GetList();

            Assert.IsFalse(result.Any());
        }
        public void GetList_ReturnsAllValid()
        {
            // arrange
            initializeDisasterCollection(activeDisaster, inActiveDisaster);

            var underTest = new DisasterService(mockService.Object);

            // act
            var result = underTest.GetList();

            // assert
            Assert.AreEqual(2, result.Count());
        }
        public void WhenNoDisastersReturnAnEmptyList()
        {
            var underTest = new DisasterService(mockService.Object);

            var result = underTest.GetList();
            Assert.IsFalse(result.Any());
        }
        public void GetList_ReturnsAllValid()
        {
            // arrange
            initializeDisasterCollection(activeDisaster, inActiveDisaster);

            var underTest = new DisasterService(mockService.Object);

            // act
            var result = underTest.GetList();

            // assert
            Assert.AreEqual(2, result.Count());
        }