Ejemplo n.º 1
0
        public async Task Contains_TestAsync()
        {
            var dataBase = await dataBaseContext.GetRandomDataBaseAsync();

            var dataBaseName = dataBase.Name;
            var condition    = await dataBaseContext.Dispatcher.InvokeAsync(() => dataBaseContext.Contains(dataBaseName));

            Assert.IsTrue(condition);
        }
 public static Task <bool> ContainsAsync(this IDataBaseContext dataBaseContext, string dataBaseName)
 {
     return(dataBaseContext.Dispatcher.InvokeAsync(() => dataBaseContext.Contains(dataBaseName)));
 }