public void Should_map_FlowTemplateStep_to_StoreDataStep() { IFlowTemplateStep source = new FlowTemplateStep { StepTypeId = 4 }; var result = Mapper.Map <IStep>(source); Assert.IsType <StoreDataStep>(result); }
public void Add(IFlowTemplateStep item) { var data = new FlowTemplateStep { FlowTemplateId = item.FlowTemplateId, Name = item.Name, StepTypeId = item.StepTypeId }; _context.FlowTemplateSteps.InsertOnSubmit(data); }