Esempio n. 1
0
        private async Task RestartServer()
        {
            if (_fomoApiFixture != null && !_fomoApiFixture.Disposed)
            {
                _fomoApiFixture.Dispose();
                GC.Collect();
            }

            _fomoApiFixture = new FomoApiFixture();
            _fomoApiFixture.CreateServer(null);
            _client = _fomoApiFixture.GetClientNotAuth();
            await Task.Delay(2 *AppTestSettings.Instance.EventBusOptions.RefreshIntervalMS);  // To let interval query interval finish.
        }
Esempio n. 2
0
 public LeaderBoardTests(FomoApiFixture webApiFactoryFixture)
 {
     webApiFactoryFixture.CreateServer(FomoApiFixture.WithNoHostedServices);
     _client = webApiFactoryFixture.GetClientNotAuth();
 }