Beispiel #1
0
 public GetScoresStepDefinitions(ScenarioContext scenarioContext, HttpOrchestrator httpOrchestrator)
 {
     _scenarioContext  = scenarioContext;
     _httpOrchestrator = httpOrchestrator;
     _scoreClient      = _httpOrchestrator.TestServer.Host.Services.GetRequiredService <IScoreClient>() as MockScoreClient;
     _fixture          = new Fixture();
 }
Beispiel #2
0
        public void CreateObject_Success()
        {
            IServiceProvider serviceProvider = new ServiceCollection()
                                               .RegisterHttpOrchestrator(_faker.Internet.Url()).BuildServiceProvider();

            HttpOrchestrator httpOrchestrator = serviceProvider.GetService <HttpOrchestrator>();

            Assert.That(httpOrchestrator, Is.Not.Null);
        }