Пример #1
0
        public void ShiftPointRequestHandler_SendsMessage_ForMessage(
            [NotNull, Frozen] ISelkieInMemoryBus bus,
            [NotNull] ShiftPointModel sut,
            [NotNull] ShiftPointRequestMessage message)
        {
            // Arrange
            SetXyzValues(sut,
                         1.0,
                         2.0,
                         3.0);

            // Act
            sut.ShiftPointRequestHandler(message);

            // Assert
            bus.Received().PublishAsync(Arg.Is <ShiftPointChangedMessage>(x => Math.Abs(x.X - 1.0) < Tolerance &&
                                                                          Math.Abs(x.Y - 2.0) < Tolerance &&
                                                                          Math.Abs(x.Z - 3.0) < Tolerance));
        }
Пример #2
0
 internal void ShiftPointRequestHandler(ShiftPointRequestMessage message)
 {
     SendQueryPointChangedMessage();
 }