public void Null_URL_Handled_And_Logged()
        {
            _settings.URL = string.Empty;
            _service.GetLaunchPads();

            _logger.Verify(l => l.Log(LogLevel.Error, 0, It.IsAny <FormattedLogValues>(), It.IsAny <Exception>(),
                                      It.IsAny <Func <object, Exception, string> >()));
        }
        public void Bad_URL_Handled_And_Logged()
        {
            _logger  = new Mock <ILogger <SpaceXOriginalService> >();
            _service = new SpaceXOriginalService(_logger.Object, _settings);

            _settings.URL = "asdfasdfasdf";
            _service.GetLaunchPads();

            _logger.Verify(l => l.Log(LogLevel.Error, 0, It.IsAny <FormattedLogValues>(), It.IsAny <Exception>(),
                                      It.IsAny <Func <object, Exception, string> >()));
        }
 public ActionResult <IEnumerable <LaunchPad> > Get()
 {
     return(Ok(_service.GetLaunchPads()));
 }