public void GetAndCheckClientByNIPFalseNIP() { //Arrange: string expectedCodeFalseNIP = "WL-115"; string expectedMessageFalseNIP = "Nieprawidłowy NIP (1112111111)."; //Act: BankAccount accountFalseNIP = GetBankAccountByNIP("1112111111", "90249000050247256316596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountFalseNIP, expectedCodeFalseNIP, expectedMessageFalseNIP); }
public void GetAndCheckClientByNIPLengthNIP() { //Arrange: string expectedCodeLengthNIP = "WL-113"; string expectedMessageLengthNIP = "Pole 'NIP' ma nieprawidłową długość. Wymagane 10 znaków (111111111)."; //Act: BankAccount accountLengthNIP = GetBankAccountByNIP("111111111", "90249000050247256316596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountLengthNIP, expectedCodeLengthNIP, expectedMessageLengthNIP); }
public void GetAndCheckClientByNIPLengthAccount() { //Arrange: string expectedCodeLengthAccount = "WL-109"; string expectedMessageLengthAccount = "Pole 'numer konta' ma nieprawidłową długość. Wymagane 26 znaków (9024900005024725631659673)."; //Act: BankAccount accountLengthAccount = GetBankAccountByNIP("1111111111", "9024900005024725631659673"); //Assert: PodatnikAssertionHelper.CheckFalse(accountLengthAccount, expectedCodeLengthAccount, expectedMessageLengthAccount); }
public void GetAndCheckClientByNIPEmptyNIP() { //Arrange: string expectedCodetEmptyNIP = "WL-112"; string expectedMessagetEmptyNIP = "Pole 'NIP' nie może być puste."; //Act: BankAccount accountEmptyNIP = GetBankAccountByNIP("", "90249000050247256316596736"); //Assert PodatnikAssertionHelper.CheckFalse(accountEmptyNIP, expectedCodetEmptyNIP, expectedMessagetEmptyNIP); }
public void GetAndCheckClientByNIPok() { //Arrange: string expectedAccountAssigned = "NIE"; //Act: BankAccount accountOK = GetBankAccountByNIP("1111111111", "90249000050247256316596736"); DateTime expectedTime = Models.Timer.GetDateResponse(); //Assert: PodatnikAssertionHelper.CheckAccountAssigned(accountOK, expectedAccountAssigned, expectedTime); }
public void GetAndCheckClientByRegon14FalseRegon() { //Arrange: string expectedCodeFalseRegon = "WL-107"; string expectedMessageFalseRegon = "Nieprawidłowy REGON (82024460697221)."; //Act: BankAccount accountFalseRegon = GetBankAccountByRegon("82024460697221", "90249000050247256311596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountFalseRegon, expectedCodeFalseRegon, expectedMessageFalseRegon); }
public void GetAndCheckClientByNIPFalseAccount() { //Arrange: string expectedCodeFalseAccount = "WL-111"; string expectedMessageFalseAccount = "Nieprawidłowy numer konta bankowego (90249000050247256311596736)."; //Act: BankAccount accountFalseAccount = GetBankAccountByNIP("1111111111", "90249000050247256311596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountFalseAccount, expectedCodeFalseAccount, expectedMessageFalseAccount); }
public void GetAndCheckClientByRegonEmptyAccount() { //Arrange: string expectedCodetEmptyAccount = "WL-108"; string expectedMessagetEmptyAccount = "Pole 'numer konta' nie może być puste."; //Act: BankAccount accountEmptyAccount = GetBankAccountByRegon("676685879", ""); //Assert: PodatnikAssertionHelper.CheckFalse(accountEmptyAccount, expectedCodetEmptyAccount, expectedMessagetEmptyAccount); }
public void GetAndCheckClientByRegonEmptyRegon() { //Arrange: string expectedCodetEmptyRegon = "WL-104"; string expectedMessagetEmptyRegon = "Pole 'REGON' nie może być puste."; //Act: BankAccount accountEmptyRegon = GetBankAccountByRegon("", "90249000050247256311596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountEmptyRegon, expectedCodetEmptyRegon, expectedMessagetEmptyRegon); }
public void GetAndCheckClientByRegon14SyntaxRegon() { //Arrange: string expectedCodeSyntaxRegon = "WL-106"; string expectedMessageSyntaxRegon = "Pole 'REGON' zawiera niedozwolone znaki. Wymagane tylko cyfry (8202446069722x)."; //Act: BankAccount accountSyntaxAccount = GetBankAccountByRegon("8202446069722x", "90249000050247256316596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountSyntaxAccount, expectedCodeSyntaxRegon, expectedMessageSyntaxRegon); }
public void GetAndCheckClientByRegon9SyntaxAccount() { //Arrange: string expectedCodeSyntaxAccount = "WL-110"; string expectedMessageSyntaxAccount = "Pole 'numer konta' zawiera niedozwolone znaki. Wymagane tylko cyfry (x0249000050247256316596736)."; //Act: BankAccount accountSyntaxAccount = GetBankAccountByRegon("676685879", "x0249000050247256316596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountSyntaxAccount, expectedCodeSyntaxAccount, expectedMessageSyntaxAccount); }
public void GetAndCheckClientByRegon9LengthRegon() { //Arrange: string expectedCodeLengthRegon = "WL-105"; string expectedMessageLengtRegon = "Pole 'REGON' ma nieprawidłową długość. Wymagane 9 lub 14 znaków (67668587)."; //Act: BankAccount accountLengtRegon = GetBankAccountByRegon("67668587", "90249000050247256311596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountLengtRegon, expectedCodeLengthRegon, expectedMessageLengtRegon); }
public void GetAndCheckClientByNIPSyntaxNIP() { //Arrange: string expectedCodeSyntaxNIP = "WL-114"; string expectedMessageSyntaxNIP = "Pole 'NIP' zawiera niedozwolone znaki. Wymagane tylko cyfry (x123456789)."; //Act: BankAccount accountSyntaxNIP = GetBankAccountByNIP("x123456789", "90249000050247256316596736"); //Assert: PodatnikAssertionHelper.CheckFalse(accountSyntaxNIP, expectedCodeSyntaxNIP, expectedMessageSyntaxNIP); }
public void GetAndCheckClientByNIPSyntaxAccount() { //Arrange: string expectedCodeSyntaxAccount = "WL-110"; string expectedMessageSyntaxAccount = "Pole 'numer konta' zawiera niedozwolone znaki. Wymagane tylko cyfry (9024900005024725631659673x)."; //Act: BankAccount accountSyntaxAccount = GetBankAccountByNIP("1111111111", "9024900005024725631659673x"); //Assert PodatnikAssertionHelper.CheckFalse(accountSyntaxAccount, expectedCodeSyntaxAccount, expectedMessageSyntaxAccount); }