Пример #1
0
        public void SetupTimeBankTest()
        {
            var commandToken = new TimeBankToken(new TimeSpan(0, 0, 0, 0, milliseconds: 10000));

            var token = commandHandler.Execute(commandToken);

            Assert.AreEqual(null, token);
            Assert.AreEqual(10000, commandToken.TimeBankInterval.Value.TotalMilliseconds);
        }
Пример #2
0
 private ICommandToken Execute(TimeBankToken timeBankToken)
 {
     TimeBank = timeBankToken.TimeBankInterval;
     return(null);
 }