public void Handle(KataAttemptAbandonedEvent message)
 {
     if (KataTimer == null)
     {
         return;
     }
     KataTimer.StopTimer();
     if (KataraiApp != null)
     {
         KataraiApp.SetAttemptAbandoned();
     }
 }
Beispiel #2
0
        public void Constructor_ShouldCreateTimer()
        {
            //---------------Set up test pack-------------------
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var kataTimer = new KataTimer();

            //---------------Test Result -----------------------
            Assert.IsNotNull(kataTimer.Timer);
            Assert.IsFalse(kataTimer.Timer.IsEnabled);
        }