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. }
public LeaderBoardTests(FomoApiFixture webApiFactoryFixture) { webApiFactoryFixture.CreateServer(FomoApiFixture.WithNoHostedServices); _client = webApiFactoryFixture.GetClientNotAuth(); }