Beispiel #1
0
        public static async Task ClassInitialize(TestContext context)
        {
            RestApiProvider = KSqlDbRestApiProvider.Create();

            moviesProvider = new MoviesProvider(RestApiProvider);

            await moviesProvider.CreateTablesAsync();

            await moviesProvider.InsertMovieAsync(MoviesProvider.Movie1);

            await moviesProvider.InsertMovieAsync(MoviesProvider.Movie2);
        }
Beispiel #2
0
        public static async Task ClassInitialize(TestContext context)
        {
            RestApiProvider = KSqlDbRestApiProvider.Create();

            moviesProvider = new MoviesProvider(RestApiProvider);

            await moviesProvider.DropTablesAsync();

            await Task.Delay(TimeSpan.FromSeconds(1));

            await moviesProvider.CreateTablesAsync();

            await moviesProvider.InsertMovieAsync(MoviesProvider.Movie1);

            await moviesProvider.InsertLeadAsync(MoviesProvider.LeadActor1);
        }