Example #1
0
        public async Task EndFixtureTests()
        {
            var task1 = _mm.InboxHousekeepingAsync(_mm.ClientCxM);
            var task2 = _mm.InboxHousekeepingAsync(_mm.ClientUserDirectory);

            if (IsEachFixtureInNewBrowser)
            {
                ClosePrimaryBrowser();
            }
            await task1.ConfigureAwait(false);

            await task2.ConfigureAwait(false);

            _mm.Dispose();
        }
        public async Task EndFixtureTests()
        {
            var task1 = _mm.InboxHousekeepingAsync(_mm.ClientCxM);
            var task2 = _mm.InboxHousekeepingAsync(_mm.ClientUserDirectory);

            if (IsEachFixtureInNewBrowser)
            {
                ClosePrimaryBrowser();
            }
            if (_isConfirmationEmailHasSent)
            {
                UserDirectoryApi.DeleteUser(TestConfig.NewUser);
            }
            await task1.ConfigureAwait(false);

            await task2.ConfigureAwait(false);

            _mm.Dispose();
        }
 public async Task EndFixtureTests()
 {
     if (TestContext.Parameters.Count == 0)
     {
         PlaceApi.DeletePlaces();
         AppApi.DeleteApps();
         ItemApi.DeleteItems();
     }
     await _mm.InboxHousekeepingAsync(_mm.ClientCxM).ContinueWith(task => _mm.Dispose());
 }