Example #1
0
        public void GetActiveList_ReturnsAllActiveValid()
        {
            // arrange
            InitializeDisasterCollection(_activeDisaster, _inactiveDisaster);

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

            // assert
            Assert.AreEqual(1, result.Count());
        }
        public void GetActiveList_ReturnsAllActiveValid()
        {
            // arrange
            initializeDisasterCollection(activeDisaster, inActiveDisaster);
            var underTest = new DisasterService(mockService.Object);

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

            // assert
            Assert.AreEqual(1, result.Count());
        }
        public void GetActiveList_ReturnsAllActiveValid()
        {
            // arrange
            initializeDisasterCollection(activeDisaster, inActiveDisaster);
            var underTest = new DisasterService(mockService.Object);

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

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