示例#1
0
        public void GetDebitsNotFoundTest()
        {
            Mappers.MapperConfig.RegisterMappings();
            DebitsController debitsController = new DebitsController();

            Assert.ThrowsException <HttpResponseException>(() => debitsController.GetDebits("0"));
        }
示例#2
0
        public void GetDebitsByDateTest()
        {
            Mappers.MapperConfig.RegisterMappings();
            DebitsController debitsController = new DebitsController();

            var debits = debitsController.GetDebits(initialDate: DateTime.Now.AddDays(-1).Date, finalDate: DateTime.Now);

            Assert.IsTrue(debits.Count() > 0);
        }
示例#3
0
        public void GetDebitsTest()
        {
            Mappers.MapperConfig.RegisterMappings();
            DebitsController debitsController = new DebitsController();

            var debits = debitsController.GetDebits("9876543210987654");

            Assert.IsTrue(debits.Count() > 0);
        }