public void GetSpotById_99_ShouldReturnNull() { _service = new SpotController(_fakeRepository); var serviceCall = _service.GetSpotById(99); serviceCall.Result.ShouldBe(null); }
public void GetSpotById_2_ShouldReturnSecondSpot() { _service = new SpotController(_fakeRepository); var serviceCall = _service.GetSpotById(2); serviceCall.Result.Id.ShouldBe(2); serviceCall.Result.ShouldNotBeNull(); }