private static dynamic CreateStep(Step stepData) { dynamic step = new ExpandoObject(); step.id = stepData.Id; step.name = stepData.Name; step.isAutomated = stepData.IsAutomated; step.approver = stepData.Approver; step.status = stepData.Status; step.rank = stepData.StepRank; step.createdOn = stepData.CreatedOn; return step; }
internal static void AssertAreStepsEqual(Step expectedStep, dynamic actualStep) { Assert.AreEqual(expectedStep.Id, actualStep.id, "Unexpected id for stage"); Assert.AreEqual(expectedStep.Name, actualStep.name, "Unexpected name for stage with id {0}", expectedStep.Id); Assert.AreEqual(expectedStep.Status, actualStep.status, "Unexpected status for stage with id {0}", expectedStep.Id); Assert.AreEqual(expectedStep.StepRank, actualStep.rank, "Unexpected rank for stage with id {0}", expectedStep.Id); Assert.AreEqual(expectedStep.CreatedOn, actualStep.createdOn, "Unexpected createdOn for stage with id {0}", expectedStep.Id); Assert.AreEqual(expectedStep.Approver, actualStep.approver, "Unexpected approver for stage with id {0}", expectedStep.Id); Assert.AreEqual(expectedStep.IsAutomated, actualStep.isAutomated, "Unexpected approver for stage with id {0}", expectedStep.Id); }
public DataModelBuilder WithStep(Step step) { _releaseSteps.Add(step); return this; }