public void MakeAccount_092111222_Exception() { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount("092111222"); system.MakeAccount("092111222"); }
public void MakeAccount_12345678_Exception() { MainSystem system = new MainSystem { Country = Country.Argentina }; system.MakeAccount("1-2345678"); system.MakeAccount("12345678"); }
public void MakeAccount_099888999_Exception() { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount("99888999"); system.MakeAccount("099888999"); }
public void MakeAccount_J9255522_Exception() { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount("J9255522"); }
public void MakeAccount_72226_Exception() { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount("72226"); }
public void MakeAccount_null_Exception() { MainSystem system = new MainSystem { Country = Country.Argentina }; system.MakeAccount(null); }
public void MakeAccount_092080475_NoException() { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount("092080475"); Assert.IsTrue(system.ThisAccountExist("092080475")); }
public void GetBalance_0DollarAccount_0Dollar() { MainSystem system = new MainSystem(); system.MakeAccount("092555222"); int actual = system.GetBalance("092555222"); int expected = 0; Assert.AreEqual(expected, actual); }
public void MakeReserve_OkNumberBADMins3_Exception() { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount("92888777"); system.AddBalance("92888777", 300); system.MakeReserve("92888777", "SBS1234 0"); }
internal MainSystem MainSystemWith_UY_Account() { MainSystem system; system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount(UruguayNumberPhone); system.AddBalance(UruguayNumberPhone, 1000); return(system); }
public void AddBalance_Add100Over0_GetterIs100() { MainSystem system = new MainSystem(); system.MakeAccount("092088777"); system.AddBalance("092088777", 100); int expected = 100; int actual = system.GetBalance("092088777"); Assert.AreEqual(expected, actual); }
internal MainSystem MainSystemWith_ARG_Account() { MainSystem system; system = new MainSystem { Country = Country.Argentina }; system.MakeAccount(ArgentinaNumberPhone); system.AddBalance(ArgentinaNumberPhone, 10000); return(system); }
//MakeAccount Method (ARG) //g = - internal void shortCutTest_ARG_MakeAccountAndExists(string numberPhone) { MainSystem system = new MainSystem { Country = Country.Argentina }; system.MakeAccount(numberPhone); bool actual = system.ThisAccountExist(numberPhone); Assert.IsTrue(actual); }
public void ThisAccountExist_RegisteredARGAccount2_True() { MainSystem system = new MainSystem { Country = Country.Argentina }; system.MakeAccount("123-45678"); bool actual = system.ThisAccountExist("12345678"); bool expected = true; Assert.AreEqual(expected, actual); }
public void AddBalance_ARGPhoneX0_BalanceAdded() { MainSystem system = new MainSystem { Country = Country.Argentina }; system.MakeAccount(ArgentinaNumberPhone); int actual = system.GetBalance(ArgentinaNumberPhone); int expected = 0; Assert.AreEqual(expected, actual); }
public void ThisAccountExist_RegisteredAccount3_True() { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount("092111222"); bool actual = system.ThisAccountExist("92111222"); bool expected = true; Assert.AreEqual(expected, actual); }
private void OkButton_Click(object sender, EventArgs e) { string number = textBox1.Text; try { system.MakeAccount(number); MessageBox.Show(String.Format("{0} was registered successfully", number)); }catch (Exception exception) { MessageBox.Show(exception.Message); } }
public void GetBalance_Add10Over0_10() { MainSystem system = new MainSystem { Country = Country.Argentina }; system.MakeAccount("12345678"); system.AddBalance("123-45678", 10); int actual = system.GetBalance("12345678"); int expected = 10; Assert.AreEqual(expected, actual); }
public void MakeReserve_HigherPrice_Exception() { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount(UruguayNumberPhone); DateTime time = DateTime.Now; if (time.Hour > 9 && time.Hour < 17) { system.MakeReserve(UruguayNumberPhone, "SBS1234 60 17:00"); } else { Assert.Inconclusive(); } }
public void AddReserve_UY_At(ref MainSystem system, string HourMins, string amount) { system.Country = Country.Uruguay; DateTime now = DateTime.Now; if (now.Hour > 9 && now.Hour < 17) { if (!system.ThisAccountExist(UruguayNumberPhone)) { system.MakeAccount(UruguayNumberPhone); } system.AddBalance(UruguayNumberPhone, 1000); system.MakeReserve(UruguayNumberPhone, standarLicencePlate + " " + amount + " " + HourMins); } else { Assert.Inconclusive(); } }
public void MakeReserve_OKNumberOKText3_AddedReserve() { DateTime now = DateTime.Now; if (now.Hour > 9 && now.Hour < 17) { MainSystem system = new MainSystem { Country = Country.Uruguay }; system.MakeAccount("092 088 777"); system.AddBalance("092 088 777", 300); system.MakeReserve("092 088 777", "SBS 1234 90 17:00"); DateTime dateCheck = new DateTime(now.Year, now.Month, now.Day, 17, 30, 0); system.WasTheLicencePlateReserveAt("SBS 1234", dateCheck); } else { Assert.Inconclusive(); } }