public void IsEntryInThePast(string currentDt, string now) { var financialEntryValidateService = new FinancialEntryValidateService(_configuration.Object); var result = financialEntryValidateService.IsEntryInThePast(Convert.ToDateTime(currentDt), Convert.ToDateTime(now)); Assert.True(result); }
public void IsDayAccountLimitReached(string dayAccountLimit, decimal value) { _configuration.Setup(x => x.GetSection("Business:DayAccountLimit").Value).Returns(dayAccountLimit); var dayBalanceEntity = new DayBalanceEntity() { Balance = value }; var financialEntryValidateService = new FinancialEntryValidateService(_configuration.Object); var result = financialEntryValidateService.IsDayAccountLimitReached(dayBalanceEntity); Assert.True(result); }