public void FixtureSetUp()
        {
            Bootstrap.AutoMapper();

            var integrationTestsPath = PlatformServices.Default.Application.ApplicationBasePath;
            var applicationPath      = Path.GetFullPath(Path.Combine(integrationTestsPath, "../../../../core-testing-sample"));

            server = new TestServer(new WebHostBuilder()
                                    .UseStartup <TestingStartup>()
                                    .UseContentRoot(applicationPath)
                                    .UseEnvironment("Development"));

            client = server.CreateClient();
        }
Esempio n. 2
0
 public void FixtureSetUp()
 {
     Bootstrap.AutoMapper();
 }