public static void AssemblyInitialize(TestContext context) { // Create in-memory test server server = TestServer.Create(appBuilder => { var config = new HttpConfiguration(); WebApiConfig.Register(config); var startup = new Startup(); startup.Configuration(appBuilder); appBuilder.UseWebApi(config); }); client = server.HttpClient; // Use custom seed class var seedConfig = new SeedConfiguration(TestUserUsername, TestUserPassword); seedConfig.Seed(); }