public void EndToEndHappyScenario() { PowerTradeManager manager = new PowerTradeManager(); var startTask = manager.StartReporting(); System.Threading.Thread.Sleep(TimeSpan.FromSeconds(30)); manager.StopReporting(); Assert.IsTrue(); }
protected override void OnStop() { try { _log.Info("Stopping the PetroineosPositionReporting Windows Service"); _powerTradeManager.StopReporting(); _log.Info("PetroineosPositionReporting Windows Service Successfully stopped"); } catch (Exception ex) { _log.Error(ex.ToString()); } }