Esempio n. 1
0
        public void VerifyContracts()
        {
            var concordHost = new ConcordHost();

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