public void Messenger_Connect_CallsConnect()
        {
            moqFactory.Client.Setup(x => x.IsConnected).Returns(false);
            messenger.Connect();

            //Connect actually runs in a separate thread, so wee need to sleep a minute to give it time to run
            System.Threading.Thread.Sleep(20);

            moqFactory.Verify(x => x.CreateMqttClientWrapper(SERV_ADDR));
            moqFactory.Client.Verify(x => x.Connect(guid.ToString()));
        }
 public void SensorManager_Ctor()
 {
     moqFactory.Verify(x => x.CreateTempProbe(settings));
     VerifyUpdateFromSettings(false, settings);
     moqFactory.Probe.Verify(x => x.Start());
 }