public LaunchPadController(ILaunchPadService launchPadService, ILogger <LaunchPadController> logger, IConfiguration config) { _launchPadService = launchPadService; _logger = logger; _baseUri = config.GetValue <string>("SpaceX:BaseUri"); }
public LaunchPadsController(IOptions <AppSettings> appSettings, ILogger <LaunchPadsController> log, ILaunchPadService launch, ILaunchPadManager manager) { _appSettings = appSettings.Value; _log = log; _launch = launch; _manager = manager; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, ILaunchPadService launch) { //creates logger. loggerFactory.AddSerilog(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseHttpsRedirection(); app.UseMvc(); }
public void Setup() { fakeRepo = A.Fake <ISpaceXRepository>(); _service = new LaunchpadService(fakeRepo); }
public LaunchPadManager(IOptions <AppSettings> appSettings, ILogger <LaunchPadManager> log, ILaunchPadService launch) { _appSettings = appSettings.Value; _log = log; _launch = launch; }
public LaunchpadAPIController(ILaunchPadService launchPadService) { _launchPadService = launchPadService; }