Example #1
0
 /// <summary>
 /// Class constructor.
 /// </summary>
 /// <param name="dateTimeProvider">Date and time provider.</param>
 /// <param name="termConfiguration">Term configuration.</param>
 public Term(IDateTimeProvider dateTimeProvider, IOptions <TermConfiguration> termConfiguration)
 {
     _dateTimeProvider  = dateTimeProvider;
     _termConfiguration = termConfiguration.Value;
     StartingDate       = _termConfiguration.StartingDateTime.Date;
     EndingDate         = StartingDate.AddYears(_termConfiguration.DurationInYears).Date;
 }
Example #2
0
 /// <summary>
 /// Class constructor.
 /// </summary>
 public TermProgressBarBlockFactory(IOptions <TermConfiguration> termConfiguration)
 {
     _termConfiguration = termConfiguration.Value;
 }
 /// <summary>
 /// Class constructor.
 /// </summary>
 /// <param name="termConfiguration">Term configuration.</param>
 /// <param name="term">Term instance.</param>
 /// <param name="termProgressBarBlockFactory">Term progress bar block factory.</param>
 public TermProgressBar(IOptions <TermConfiguration> termConfiguration, ITerm term, ITermProgressBarBlockFactory termProgressBarBlockFactory)
 {
     _termConfiguration = termConfiguration.Value;
     _term = term;
     _termProgressBarBlockFactory = termProgressBarBlockFactory;
 }