Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #5
0
 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)
     }));
 }