예제 #1
0
        public void Apply_SetsIsApplyingToTrue_WhenCalled()
        {
            // Arrange
            var message = new ControlModelTestLineSetMessage
                          {
                              Type = "Test"
                          };
            m_Model.ControlModelTestLineSetHandler(message);

            // Act
            m_Model.Apply();

            // Assert
            Assert.True(m_Model.IsApplying);
        }
예제 #2
0
        public void Apply_SendsControlModelChangedMessage_WhenCalled()
        {
            // Arrange
            var message = new ControlModelTestLineSetMessage
                          {
                              Type = "Test"
                          };
            m_Model.ControlModelTestLineSetHandler(message);

            // Act
            m_Model.Apply();

            // Assert
            m_Bus.Received().PublishAsync(Arg.Is <ControlModelChangedMessage>(x => x.IsApplying));
        }
예제 #3
0
        public void ControlModelTestLineSetHandler_SetsSelectedTestLines_WhenCalled()
        {
            // Arrange
            var message = new ControlModelTestLineSetMessage
                          {
                              Type = "Test"
                          };

            // Act
            m_Model.ControlModelTestLineSetHandler(message);

            // Assert
            Assert.True(m_Model.SelectedTestLine == "Test");
        }
예제 #4
0
 internal void ControlModelTestLineSetHandler(ControlModelTestLineSetMessage message)
 {
     SelectedTestLine = message.Type;
 }