Example #1
0
 public IncomeService(IIncomeContext <decimal> incomeContext)
 {
     _incomeContext = incomeContext ?? throw new ArgumentNullException(nameof(incomeContext));
 }
 /// <summary>
 /// this is for testing purpose, we can remove this when we implement IOC framework like Unit framework
 /// </summary>
 internal IncomeRepository(IIncomeContext context)
 {
     _context = context;
 }