public void GetDebitsNotFoundTest() { Mappers.MapperConfig.RegisterMappings(); DebitsController debitsController = new DebitsController(); Assert.ThrowsException <HttpResponseException>(() => debitsController.GetDebits("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); }
public void GetDebitsTest() { Mappers.MapperConfig.RegisterMappings(); DebitsController debitsController = new DebitsController(); var debits = debitsController.GetDebits("9876543210987654"); Assert.IsTrue(debits.Count() > 0); }