public static void AssemblyInit(TestContext context) { if (File.Exists("test.db")) { File.Delete("test.db"); } var conn = new TestAppConfig().DatabaseConnectionString; var runner = new MigrationRunner(DatabaseType.Sqlite, conn, false, typeof(TestInitializer).Assembly); runner.Run(); BaseControllerTest.Init(); }
public async Task GetWithInvalidKeyShouldReturnNoEntity() { HttpResponseMessage response = await Server.CreateRequest(GetUriPath() + "(5)").GetAsync(); BaseControllerTest <MobileToken> .AssertEmptyResponse(response); }
public async Task GetShouldReturnNoElements() { HttpResponseMessage response = await Server.CreateRequest(GetUriPath()).GetAsync(); BaseControllerTest <MobileToken> .AssertEmptyResponse(response); //MobileToken controller does not allow this call so it returns an empty list }