예제 #1
0
        public InteractionContainerDTO MapFrom(InteractionContainer interactionContainer)
        {
            var dto = Map <InteractionContainerDTO>(interactionContainer);

            dto.Parameters = interactionContainer.GetChildren <IParameter>().MapAllUsing(_parameterToParameterDTOMapper).Cast <ParameterDTO>();
            return(dto);
        }
 protected override void Context()
 {
     base.Context();
     _parameter            = A.Fake <IParameter>();
     _interactionContainer = A.Fake <InteractionContainer>();
     A.CallTo(() => _interactionContainer.GetChildren <IParameter>()).Returns(new[] { _parameter });
 }