public void VerifyContracts() { var concordHost = new ConcordHost(); concordHost.RegisterTestServer <Startup>(ConfigureDependencyInjection, scenarioHandler: _scenarioHandler); concordHost.AddContractDefinition(@"../../../../../../src/ConcordNet.UnitTests/TestFiles/website-api.json"); concordHost.VerifyContractDefinitions(); }
public void GivenValidSetup_WhenCreatingNewHost_ThenHostIsCreated() { Assert.DoesNotThrow(() => { var concordHost = new ConcordHost(); concordHost.RegisterTestServer <TestStartup>(); Assert.NotNull(concordHost.TestServer); }); }