internal void SendColonyLinesResponseMessage() { var message = new ColonyLinesResponseMessage { Lines = m_Source.Lines }; m_MemoryBus.PublishAsync(message); LogLines(m_Source.Lines); }
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)); }
public void ColonyLinesResponsedHandler_SetsIsApplyingToFalse_WhenCalled() { // Arrange var message = new ColonyLinesResponseMessage(); // Act m_Model.ColonyLinesResponsedHandler(message); // Assert Assert.False(m_Model.IsApplying); }
internal void ColonyLinesResponsedHandler(ColonyLinesResponseMessage message) { IsApplying = false; SendChangedMessage(IsRunning, IsFinished, IsApplying); }