コード例 #1
0
        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();
        }
コード例 #2
0
 public void FixtureSetUp()
 {
     Bootstrap.AutoMapper();
 }