public void ColonyAvailableTestLinesResponseHandler_SendsMessage_WhenCalled() { // Arrange var message = new ColonyAvailableTestLinesResponseMessage(); // Act m_Model.ColonyAvailableTestLinesResponseHandler(message); // Assert m_Bus.Received() .PublishAsync(Arg.Is <ControlModelTestLinesResponseMessage>(x => x.TestLineTypes.Equals(message.Types))); }
internal void ColonyAvailabeTestLinesRequestHandler(ColonyAvailabeTestLinesRequestMessage message) { IEnumerable <string> types = GetTestLineTypes(); var response = new ColonyAvailableTestLinesResponseMessage { Types = types }; m_MemoryBus.PublishAsync(response); }
public void ColonyAvailableTestLinesResponseHandler_SetIsApplyingToFalse_WhenCalled() { // Arrange var message = new ColonyAvailableTestLinesResponseMessage(); // Act m_Model.ColonyAvailableTestLinesResponseHandler(message); // Assert Assert.False(m_Model.IsApplying); }
internal void ColonyAvailableTestLinesResponseHandler(ColonyAvailableTestLinesResponseMessage message) { TestLineTypes = message.Types; m_Bus.PublishAsync(new ControlModelTestLinesResponseMessage { TestLineTypes = message.Types }); }