コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }