static void Main(string[] args) { Customer c1 = new Customer("5551111717", "Hakan Alakus", "Ex", "Halkalı Merkez mah 5.sokak", "Turkey", "Istanbul", "İkitelli"); CustomerBillingAdressAdapter adapter = new CustomerBillingAdressAdapter(c1); IAdress adress = adapter; Console.WriteLine(adress.GetCity()); Console.WriteLine(adress.GetCountry()); Console.WriteLine(adress.GetAdress()); Console.ReadLine(); }
public void CreateFailedNewAddressTest() { //Arrange AddressBookPage addressBook = new AddressBookPage(); AddNewAddressPage newAddressPage = addressBook.GoToNewAddressPage(); newAddressPage.FillAllRequareField(invalidAdressInput.GetFirstName(), invalidAdressInput.GetLastName(), invalidAdressInput.GetAddress1(), invalidAdressInput.GetCity(), invalidAdressInput.GetPostCode(), invalidAdressInput.GetCountry(), invalidAdressInput.GetZone()).ClickContinueButton(); //Act bool actual = newAddressPage.AddressForm.IsEmptyInputErrorMessage(); //Assert Assert.IsTrue(actual); log.Info("\"Create Failed New Address Test\" pass"); }
public void Test1CreateNewAddressTest(string expected) { //Arrange AddressBookPage addressBook = new AddressBookPage(); AddNewAddressPage newAddressPage = addressBook.GoToNewAddressPage(); addressBook = newAddressPage.FillAllRequareField(adressInput.GetFirstName(), adressInput.GetLastName(), adressInput.GetAddress1(), adressInput.GetCity(), adressInput.GetPostCode(), adressInput.GetCountry(), adressInput.GetZone()) .Continue(); //Act bool actual = addressBook.IsAddressInTableByShortAddress(expected); //Assert Assert.IsTrue(actual); log.Info("\"Create New Address Test\" pass"); }