Example #1
0
        public void GetSpotById_99_ShouldReturnNull()
        {
            _service = new SpotController(_fakeRepository);
            var serviceCall = _service.GetSpotById(99);

            serviceCall.Result.ShouldBe(null);
        }
Example #2
0
        public void GetSpotById_2_ShouldReturnSecondSpot()
        {
            _service = new SpotController(_fakeRepository);
            var serviceCall = _service.GetSpotById(2);

            serviceCall.Result.Id.ShouldBe(2);
            serviceCall.Result.ShouldNotBeNull();
        }