示例#1
0
        public void WhenIViewTheCustomer()
        {
            _storedCustomer.Should().NotBeNull();

            int customerId = _customerRepository.GetIdByName(_storedCustomer.Name);

            _customerMaintenancePage.Open(customerId);
            _uiViewInfo = _customerMaintenancePage.GetViewInfo();
        }
        public void ThenIShouldSeeTheFollowingCustomerDetails(Table table)
        {
            var expectedValues            = table.Rows.Single();
            CustomerUiViewInfo uiViewInfo = _customerMaintenancePage.GetViewInfo();

            uiViewInfo.Title.Should().Be(expectedValues["Title"]);
            uiViewInfo.Name.Should().Be(expectedValues["Name"]);
            uiViewInfo.AddressLine1.Should().Be(expectedValues["Address Line 1"]);
            uiViewInfo.AddressLine2.Should().Be(expectedValues["Address Line 2"]);
            uiViewInfo.AddressLine3.Should().Be(expectedValues["Address Line 3"]);
            uiViewInfo.Postcode.Should().Be(expectedValues["Postcode"]);
            uiViewInfo.HomePhone.Should().Be(expectedValues["Home Phone"]);
            uiViewInfo.Mobile.Should().Be(expectedValues["Mobile"]);
        }