コード例 #1
0
        internal void SendColonyLinesResponseMessage()
        {
            var message = new ColonyLinesResponseMessage
                          {
                              Lines = m_Source.Lines
                          };

            m_MemoryBus.PublishAsync(message);

            LogLines(m_Source.Lines);
        }
コード例 #2
0
        public void ColonyLinesResponsedHandler_SendsMessage_WhenCalled()
        {
            // Arrange
            var message = new ColonyLinesResponseMessage();

            // Act
            m_Model.ColonyLinesResponsedHandler(message);

            // Assert
            m_Bus.Received()
                 .PublishAsync(Arg.Is <ControlModelChangedMessage>(x => !x.IsApplying));
        }
コード例 #3
0
        public void ColonyLinesResponsedHandler_SetsIsApplyingToFalse_WhenCalled()
        {
            // Arrange
            var message = new ColonyLinesResponseMessage();

            // Act
            m_Model.ColonyLinesResponsedHandler(message);

            // Assert
            Assert.False(m_Model.IsApplying);
        }
コード例 #4
0
        internal void ColonyLinesResponsedHandler(ColonyLinesResponseMessage message)
        {
            IsApplying = false;

            SendChangedMessage(IsRunning,
                               IsFinished,
                               IsApplying);
        }