예제 #1
0
        public void GetByID_Valid()
        {
            // arrange
            InitializeDisasterCollection(_activeDisaster);

            // act
            var result = _disasterService.Get(_activeDisaster.Id);

            // assert
            Assert.AreEqual(_activeDisaster.Id, result.Id);
        }
예제 #2
0
        public void GetByID_NotFound()
        {
            // arrange
            // initializeDisasterCollection(testDisaster1);
            var underTest = new DisasterService(mockService.Object);

            // act
            var result = underTest.Get(activeDisaster.Id);

            // assert
            Assert.AreEqual(null, result);
        }
예제 #3
0
        public void GetByID_Valid()
        {
            // arrange
            initializeDisasterCollection(activeDisaster);
            var underTest = new DisasterService(mockService.Object);

            // act
            var result = underTest.Get(activeDisaster.Id);

            // assert
            Assert.AreEqual(activeDisaster.Id, result.Id);
        }
예제 #4
0
        public void GetByID_Valid()
        {
            // arrange
            initializeDisasterCollection(activeDisaster);
            var underTest = new DisasterService(mockService.Object);

            // act
            var result = underTest.Get(activeDisaster.Id);

            // assert
            Assert.AreEqual(activeDisaster.Id, result.Id);
        }
예제 #5
0
        public void GetByID_NotFound()
        {
            // arrange
               // initializeDisasterCollection(testDisaster1);
            var underTest = new DisasterService(mockService.Object);

            // act
            var result = underTest.Get(activeDisaster.Id);

            // assert
            Assert.AreEqual(null, result);
        }