Exemplo n.º 1
0
        public void UpdateContexKeyValue()
        {
            var panicStrategy = new PanicStrategy(visitorDelegate);

            panicStrategy.UpdateContext("key", "value");
            fsLogManagerMock.Verify(x => x.Error(string.Format(Constants.METHOD_DEACTIVATED_ERROR, "UpdateContex", FlagshipStatus.READY_PANIC_ON), "UpdateContex"), Times.Once());
        }
Exemplo n.º 2
0
        public void UpdateContextTest()
        {
            var panicStrategy = new PanicStrategy(visitorDelegate);

            panicStrategy.UpdateContext(new Dictionary <string, object>());
            fsLogManagerMock.Verify(x => x.Error(string.Format(Constants.METHOD_DEACTIVATED_ERROR, "UpdateContex", FlagshipStatus.READY_PANIC_ON), "UpdateContex"), Times.Once());
        }