public void TestPipelineDataContainsNullValue() { var registry = new MapperRegistry(); registry.Add(new FakeMap()); var map = registry.Get<ICommandMetadata, IInputModel>(); Assert.NotNull(map); var data = new MapCommandPipelineData { CommandMetadata = null }; var step = new GetInputModelStep(registry); data = step.Execute(data); }
public void TestMetadataToInputModelStep() { var registry = new MapperRegistry(); registry.Add(new FakeMap()); var map = registry.Get<ICommandMetadata, IInputModel>(); Assert.NotNull(map); var data = new MapCommandPipelineData { CommandMetadata = new Mock<ICommandMetadata>().Object }; var step = new GetInputModelStep(registry); data = step.Execute(data); Assert.NotNull(data.InputModel); }