public void GivenIWantToCreateAPartWithTheFollowingInput(Table table) { foreach (var row in table.Rows) { Part part = new Part(new Guid(), row["PartNumber"], row["PartDescription"], Convert.ToInt32(row["UnitOfMeasure"]), Convert.ToInt32(row["SalesLeadTime"])); partList.Add(part); } }
public void WhenIGetDetailsOfAPart() { tmpPart = partList.FirstOrDefault(e => e.PartNumber == "ABC1"); }