Zbiór zmian 984 dla trunk/eCard/eCardMVC/adMoto.Payments.Test/UI/MerchantTests.cs
- Data:
- 2009-12-28 15:17:15 (16 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/eCard/eCardMVC/adMoto.Payments.Test/UI/MerchantTests.cs (zmodyfikowane) (4 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/adMoto.Payments.Test/UI/MerchantTests.cs
r982 r984 7 7 public class MerchantTests 8 8 { 9 private readonly UIHelper _uidata = new UIHelper(); 10 9 11 [Test] 10 12 [Category("UI")] 11 13 public void Redirects_To_Ecard_When_All_Details_Are_Correct() 12 14 { 15 //dodanie testowego rekordu do tabel: FAKTURY, FAKTURA_DETAILS 16 var uiData = _uidata.CreateAndAddTestRecordToRepository(2); 17 13 18 const string test = "test"; 19 uiData.Test_surname = test; 20 uiData.Test_firstname = test; 21 14 22 var ie = new IE("http://localhost:3646/pl/Account/LogOn"); 15 ie.TextField(Find.ByName("numerFaktury")).TypeText( "27/ASZ/2009");16 ie.TextField(Find.ByName("nip")).TypeText( "854956281");23 ie.TextField(Find.ByName("numerFaktury")).TypeText(uiData.Test_numer_faktury); 24 ie.TextField(Find.ByName("nip")).TypeText(uiData.Test_nip); 17 25 ie.Button(Find.ById("loguj")).Click(); 18 26 … … 25 33 ie.Close(); 26 34 ie.Dispose(); 35 36 //usuniecie rekordu z tabel: FAKTURY, FAKTURA_DETAILS 37 _uidata.DeleteTestRecordsFromRepository(uiData); 38 39 //usuniecie rekordu z tabeli PatnosciEcard 40 _uidata.DeleteTestPaymentFromRepository(uiData); 27 41 } 28 42 … … 31 45 public void Returns_ZlyHash_When_Invoice_Amount_Is_Zero() 32 46 { 33 // wartosc faktury 1/SLJ/2009jest 0 (zero)47 // wartosc testowej faktury 1/SLJ/1 jest 0 (zero) 34 48 // wowczas eCard powinien zwrocic zlyHash - stala informujaca, ze cos jest nie tak... 49 var uiData = _uidata.CreateAndAddTestRecordToRepository(0); 35 50 36 51 const string test = "test"; 52 uiData.Test_surname = test; 53 uiData.Test_firstname = test; 54 37 55 var ie = new IE("http://localhost:3646/pl/Account/LogOn"); 38 ie.TextField(Find.ByName("numerFaktury")).TypeText( "1/SLJ/2009");39 ie.TextField(Find.ByName("nip")).TypeText( "9730727417");56 ie.TextField(Find.ByName("numerFaktury")).TypeText(uiData.Test_numer_faktury); 57 ie.TextField(Find.ByName("nip")).TypeText(uiData.Test_nip); 40 58 ie.Button(Find.ById("loguj")).Click(); 41 59 … … 47 65 ie.Close(); 48 66 ie.Dispose(); 67 68 //usuniecie rekordu z tabel: FAKTURY, FAKTURA_DETAILS 69 _uidata.DeleteTestRecordsFromRepository(uiData); 49 70 } 50 71 }
