public void Handle_called_once_has_right_correct_properties()
        {
            var handler = new TestHandler<int>();

            handler.Handle(10);

            handler.Satisfy(h =>
                h.CalledTimes == 1 &&
                h.WasCalledOnce &&
                h.WasCalledAtLeastOnce  &&
                h.LastMessage == 10);
        }
        public void Handle_CalledOnce_HasRightCorrectProperties()
        {
            var handler = new TestHandler<int>();

            handler.Handle(10);

            handler.Satisfy(h => 
                h.WasCalled == 1 &&
                h.WasCalledOnce &&
                h.WasCalledAtLeastOnce  &&
                h.LastMessage == 10);
        }
        public void Handle_called_twice_has_right_correct_properties()
        {
            var handler = new TestHandler<int>();

            handler.Handle(10);
            handler.Handle(15);

            handler.Satisfy(h =>
                h.CalledTimes == 2 &&
                h.WasCalledAtLeastOnce &&
                h.WasCalledOnce == false &&
                h.Messages[0] == 10 &&
                h.Messages[1] == 15 &&
                h.LastMessage == 15);
        }
        public void Handle_CalledTwice_HasRightCorrectProperties()
        {
            var handler = new TestHandler<int>();

            handler.Handle(10);
            handler.Handle(15);

            handler.Satisfy(h =>
                h.WasCalled == 2 &&
                h.WasCalledAtLeastOnce &&
                h.WasCalledOnce == false &&
                h.Messages[0] == 10 &&
                h.Messages[1] == 15 &&
                h.LastMessage == 15);
        }