示例#1
0
        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);
        }
示例#2
0
        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);
        }