Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public void WhenIGetDetailsOfAPart()
 {
     tmpPart = partList.FirstOrDefault(e => e.PartNumber == "ABC1");
 }