public void Should_decrement_projection() { // Arrange var message = new TestMessage(); var projection = new TestProjection {ProjectionProperty = 5}; var builder = new AddNewProjectionStrategyArguments<TestMessage, TestProjection>(); builder.Decrement(p => p.ProjectionProperty); // Act builder.Mappers.Map(message, projection); // Assert Assert.AreEqual(4, projection.ProjectionProperty); }
public void Should_decrement_projection() { // Arrange var message = new TestMessage(); var projection = new TestProjection { ProjectionProperty = 5 }; var builder = new AddNewProjectionStrategyArguments <TestMessage, TestProjection>(); builder.Decrement(p => p.ProjectionProperty); // Act builder.Mappers.Map(message, projection); // Assert Assert.AreEqual(4, projection.ProjectionProperty); }