internal void ColonyLineResponseHandler(ColonyLineResponseMessage message) { UpdateSource(false, 0); SendResponseMessage(); }
public void ColonyLineResponsedHandler_ClearsRacetracks_WhenCalled() { // Arrange var message = new ColonyLineResponseMessage(); // Act m_Model.ColonyLineResponsedHandler(message); // Assert m_Bus.Received() .Publish(Arg.Any <RacetrackModelChangedMessage>()); }
internal void ColonyLineResponsedHandler(ColonyLineResponseMessage message) { Update(new int[0]); }
public void ColonyLineResponseHandlerCallsLoadNodesTest() { var message = new ColonyLineResponseMessage(); m_Model.ColonyLineResponseHandler(message); m_Bus.Received() .Publish(Arg.Any <NodesModelChangedMessage>()); }
internal void ColonyLineResponsedHandler(ColonyLineResponseMessage message) { m_Logger.Debug("Handling '{0}'...".Inject(message.GetType())); Update(m_LinesSourceManager.Lines); }
internal void ColonyLineResponsedHandler(ColonyLineResponseMessage message) { CreateNodesForCurrentLines(); }
public void ColonyLineResponsedHandler_SendsMessage_WhenCalled() { // Arrange var message = new ColonyLineResponseMessage(); // Act m_Sut.ColonyLineResponsedHandler(message); // Assert m_Bus.Received().PublishAsync(Arg.Any <AntSettingsModelChangedMessage>()); }
public void ColonyLineResponsedHandler_SetsFixedStartNodeToZero_WhenCalled() { // Arrange var message = new ColonyLineResponseMessage(); // Act m_Sut.ColonyLineResponsedHandler(message); // Assert Assert.AreEqual(0, m_Sut.FixedStartNode); }
public void ColonyLineResponsedHandlerClearsNodeModelTest() { // Arrange var message = new ColonyLineResponseMessage(); // Act m_Model.ColonyLineResponsedHandler(message); // Assert Assert.True(m_Model.Node == NodeModel.Unknown); }
public void ColonyLineResponsedHandler_CallsManager_WhenCalled() { // Arrange var message = new ColonyLineResponseMessage(); // Act m_Sut.ColonyLineResponsedHandler(message); // Assert m_Manager.Received().CreateNodesForCurrentLines(); }
public void ColonyLineResponsedHandlerCallsUpdateTest() { // Arrange var message = new ColonyLineResponseMessage(); // Act m_Model.ColonyLineResponsedHandler(message); // Assert m_Bus.Received().Publish(Arg.Any <TestBaseNodeModelChangedMessage>()); }
public void ColonyLineResponsedHandler_CallsUpdateNodes_WhenCalled() { // Arrange var message = new ColonyLineResponseMessage(); // Act m_Model.ColonyLineResponsedHandler(message); // Assert m_Bus.Received() .Publish(Arg.Any <ShortestPathDirectionModelChangedMessage>()); }
public void ColonyLineResponsedHandlerCallsUpdateTest() { var message = new ColonyLineResponseMessage(); m_Model.ColonyLineResponsedHandler(message); m_Bus.Received() .PublishAsync(Arg.Any <LinesModelChangedMessage>()); }
internal void ColonyTestLineResponseHandler(ColonyLineResponseMessage message) { IsApplying = false; SendChangedMessage(IsRunning, IsFinished, IsApplying); }
internal void ColonyLineResponseHandler(ColonyLineResponseMessage message) { m_Logger.Debug("Handling '{0}'...".Inject(message.GetType())); LoadNodes(); }