public void FatorVencimento_23_02_2025() { var fatorVencimento = AbstractBanco.FatorVencimento(new Boleto { DataVencimento = new DateTime(2025, 2, 23, 0, 0, 0) }); Assert.AreEqual(1001, fatorVencimento); }
public void FatorVencimento_12_03_2014() { var fatorVencimento = AbstractBanco.FatorVencimento(new Boleto { DataVencimento = new DateTime(2014, 3, 12, 0, 0, 0) }); Assert.AreEqual(6000, fatorVencimento); }
public void FatorVencimento_18_01_2014() { var fatorVencimento = AbstractBanco.FatorVencimento(new Boleto { DataVencimento = new DateTime(2014, 1, 18, 0, 0, 0) }); Assert.AreEqual(5947, fatorVencimento); }
public void FatorVencimento_21_02_2025() { var fatorVencimento = AbstractBanco.FatorVencimento(new BoletoNet.Boleto { DataVencimento = new DateTime(2025, 2, 21, 0, 0, 0) }); Assert.AreEqual(9999, fatorVencimento); }
public void Boleto2Net_FatorVencimentos() { Assert.AreEqual(1000, AbstractBanco.FatorVencimento(new Boleto2Net.Boleto { DataVencimento = new DateTime(2025, 02, 22, 0, 0, 0) })); Assert.AreEqual(1001, AbstractBanco.FatorVencimento(new Boleto2Net.Boleto { DataVencimento = new DateTime(2025, 02, 23, 0, 0, 0) })); Assert.AreEqual(5947, AbstractBanco.FatorVencimento(new Boleto2Net.Boleto { DataVencimento = new DateTime(2014, 01, 18, 0, 0, 0) })); Assert.AreEqual(6000, AbstractBanco.FatorVencimento(new Boleto2Net.Boleto { DataVencimento = new DateTime(2014, 03, 12, 0, 0, 0) })); Assert.AreEqual(7046, AbstractBanco.FatorVencimento(new Boleto2Net.Boleto { DataVencimento = new DateTime(2017, 01, 21, 0, 0, 0) })); Assert.AreEqual(9999, AbstractBanco.FatorVencimento(new Boleto2Net.Boleto { DataVencimento = new DateTime(2025, 02, 21, 0, 0, 0) })); }
public void Santander_Mod11_Com_IOS_8() { int dv = AbstractBanco.Mod11("0339567700001052509378045700000025208428101", 9, 0); Assert.AreEqual(dv, 8, "Linha digitável inválida"); }
public void Santander_Mod11_Com_IOS_6() { int dv = AbstractBanco.Mod11("0339204600000273719028203356661245780020102", 9, 0); Assert.AreEqual(dv, 6, "Linha digitável inválida"); }