public void GetByID_Valid() { // arrange InitializeDisasterCollection(_activeDisaster); // act var result = _disasterService.Get(_activeDisaster.Id); // assert Assert.AreEqual(_activeDisaster.Id, result.Id); }
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); }
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); }