public void Should_return_PeriodEngine2015_for_DefaultEngine_when_Year_2015() { IEnginesHistory <IPeriodEngine> engines = PeriodEnginesHistory.CreateEngines(); IPeriodEngine engine2015 = engines.DefaultEngine(); Assert.AreEqual(FULL_CLASS_NAME_2015, engine2015.GetType().ToString()); }
public void Should_return_Weekly_Seconds_Constants_for_Period_Engine_when_Year_2015() { IEnginesHistory <IPeriodEngine> engines = PeriodEnginesHistory.CreateEngines(); IPeriodEngine engine = engines.ResolveEngine(testPeriod); Assert.AreEqual(144000, engine.PeriodWeeklyWorkingSeconds(testPeriod)); }
private EngineServiceModule() { HistoryOfPeriod = PeriodEnginesHistory.CreateEngines(); HistoryOfTaxing = TaxingEnginesHistory.CreateEngines(); HistoryOfHealth = HealthEnginesHistory.CreateEngines(); HistoryOfSocial = SocialEnginesHistory.CreateEngines(); }
public void Should_return_PeriodEngine2015_for_ClassNameEngine_when_Year_2011() { IEnginesHistory <IPeriodEngine> engines = PeriodEnginesHistory.CreateEngines(); MonthPeriod period2011 = new MonthPeriod(2011, 1); IPeriodEngine engine2011 = engines.ResolveEngine(period2011); Assert.AreEqual(FULL_CLASS_NAME_2015, engine2011.GetType().ToString()); }