Beispiel #1
0
        public static async Task ClassInitializeAsync(TestContext context)
        {
            app = new ();
            await app.InitializeAsync(context);

            cremaHost = app.GetService(typeof(ICremaHost)) as ICremaHost;
        }
Beispiel #2
0
        public static async Task ClassInitAsync(TestContext context)
        {
            app = new();
            await app.InitializeAsync(context);

            await app.OpenAsync();

            dataBaseContext = app.GetService(typeof(IDataBaseContext)) as IDataBaseContext;
        }
        public static async Task ClassInitAsync(TestContext context)
        {
            app = new TestApplication();
            await app.InitializeAsync(context);

            await app.OpenAsync();

            authentication = await app.LoginRandomAsync(Authority.Admin);

            dataBaseContext = app.GetService(typeof(IDataBaseContext)) as IDataBaseContext;
            dataBase        = await dataBaseContext.GetRandomDataBaseAsync(DataBaseFlags.NotLoaded | DataBaseFlags.Public | DataBaseFlags.NotLocked);

            await dataBase.LoadAsync(authentication);

            await dataBase.EnterAsync(authentication);

            await dataBase.InitializeRandomItemsAsync(authentication, DataBaseSettings.Default);

            category = await dataBase.GetRandomTableCategoryAsync(item => item.Parent != null);
        }