コード例 #1
0
        internal void ColonyLineResponseHandler(ColonyLineResponseMessage message)
        {
            UpdateSource(false,
                         0);

            SendResponseMessage();
        }
コード例 #2
0
        public void ColonyLineResponsedHandler_ClearsRacetracks_WhenCalled()
        {
            // Arrange
            var message = new ColonyLineResponseMessage();

            // Act
            m_Model.ColonyLineResponsedHandler(message);

            // Assert
            m_Bus.Received()
                 .Publish(Arg.Any <RacetrackModelChangedMessage>());
        }
コード例 #3
0
 internal void ColonyLineResponsedHandler(ColonyLineResponseMessage message)
 {
     Update(new int[0]);
 }
コード例 #4
0
        public void ColonyLineResponseHandlerCallsLoadNodesTest()
        {
            var message = new ColonyLineResponseMessage();

            m_Model.ColonyLineResponseHandler(message);

            m_Bus.Received()
                 .Publish(Arg.Any <NodesModelChangedMessage>());
        }
コード例 #5
0
ファイル: LinesModel.cs プロジェクト: tschroedter/Selkie.WPF
        internal void ColonyLineResponsedHandler(ColonyLineResponseMessage message)
        {
            m_Logger.Debug("Handling '{0}'...".Inject(message.GetType()));

            Update(m_LinesSourceManager.Lines);
        }
コード例 #6
0
 internal void ColonyLineResponsedHandler(ColonyLineResponseMessage message)
 {
     CreateNodesForCurrentLines();
 }
コード例 #7
0
        public void ColonyLineResponsedHandler_SendsMessage_WhenCalled()
        {
            // Arrange
            var message = new ColonyLineResponseMessage();

            // Act
            m_Sut.ColonyLineResponsedHandler(message);

            // Assert
            m_Bus.Received().PublishAsync(Arg.Any <AntSettingsModelChangedMessage>());
        }
コード例 #8
0
        public void ColonyLineResponsedHandler_SetsFixedStartNodeToZero_WhenCalled()
        {
            // Arrange
            var message = new ColonyLineResponseMessage();

            // Act
            m_Sut.ColonyLineResponsedHandler(message);

            // Assert
            Assert.AreEqual(0,
                            m_Sut.FixedStartNode);
        }
コード例 #9
0
        public void ColonyLineResponsedHandlerClearsNodeModelTest()
        {
            // Arrange
            var message = new ColonyLineResponseMessage();

            // Act
            m_Model.ColonyLineResponsedHandler(message);

            // Assert
            Assert.True(m_Model.Node == NodeModel.Unknown);
        }
コード例 #10
0
        public void ColonyLineResponsedHandler_CallsManager_WhenCalled()
        {
            // Arrange
            var message = new ColonyLineResponseMessage();

            // Act
            m_Sut.ColonyLineResponsedHandler(message);

            // Assert
            m_Manager.Received().CreateNodesForCurrentLines();
        }
コード例 #11
0
        public void ColonyLineResponsedHandlerCallsUpdateTest()
        {
            // Arrange
            var message = new ColonyLineResponseMessage();

            // Act
            m_Model.ColonyLineResponsedHandler(message);

            // Assert
            m_Bus.Received().Publish(Arg.Any <TestBaseNodeModelChangedMessage>());
        }
コード例 #12
0
        public void ColonyLineResponsedHandler_CallsUpdateNodes_WhenCalled()
        {
            // Arrange
            var message = new ColonyLineResponseMessage();

            // Act
            m_Model.ColonyLineResponsedHandler(message);

            // Assert
            m_Bus.Received()
                 .Publish(Arg.Any <ShortestPathDirectionModelChangedMessage>());
        }
コード例 #13
0
        public void ColonyLineResponsedHandlerCallsUpdateTest()
        {
            var message = new ColonyLineResponseMessage();

            m_Model.ColonyLineResponsedHandler(message);

            m_Bus.Received()
                 .PublishAsync(Arg.Any <LinesModelChangedMessage>());
        }
コード例 #14
0
        internal void ColonyTestLineResponseHandler(ColonyLineResponseMessage message)
        {
            IsApplying = false;

            SendChangedMessage(IsRunning,
                               IsFinished,
                               IsApplying);
        }
コード例 #15
0
ファイル: NodesModel.cs プロジェクト: tschroedter/Selkie.WPF
        internal void ColonyLineResponseHandler(ColonyLineResponseMessage message)
        {
            m_Logger.Debug("Handling '{0}'...".Inject(message.GetType()));

            LoadNodes();
        }