public void WhenICreateANewCarForCustomerWithTheFollowingDetails(string customerName, Table table) { var values = table.Rows.Single(); _uiViewInfo = new CarUiViewInfo( values["Registration"], values["Make"], values["Model"], values["Year"]); _carMaintenancePage.CreateCar(_uiViewInfo); }
public void WhenICreateANewCarForCustomerWithTheFollowingDetails(TransformedInt customerId, Table table) { var values = table.Rows.Single(); var uiViewInfo = new CarUiViewInfo( values["Registration"], customerId, values["Make"], values["Model"], values["Year"]); _carMaintenancePage.Open(); _carMaintenancePage.CreateCar(uiViewInfo); }