public GetScoresStepDefinitions(ScenarioContext scenarioContext, HttpOrchestrator httpOrchestrator) { _scenarioContext = scenarioContext; _httpOrchestrator = httpOrchestrator; _scoreClient = _httpOrchestrator.TestServer.Host.Services.GetRequiredService <IScoreClient>() as MockScoreClient; _fixture = new Fixture(); }
public void CreateObject_Success() { IServiceProvider serviceProvider = new ServiceCollection() .RegisterHttpOrchestrator(_faker.Internet.Url()).BuildServiceProvider(); HttpOrchestrator httpOrchestrator = serviceProvider.GetService <HttpOrchestrator>(); Assert.That(httpOrchestrator, Is.Not.Null); }