Пример #1
0
        public static AnnualRingModel FromLunarYear(int lunarYear)
        {
            var model = new AnnualRingModel {
                LunarYear = lunarYear, Zodiac = ZodiacYear.GetZodiac(lunarYear)
            };

            return(model);
        }
Пример #2
0
 public void GivenTheDateIs(string dateString)
 {
     datetime        = DateTime.Parse(dateString);
     actualZodiacGot = ZodiacYear.GetZodiac(datetime);
 }
Пример #3
0
 public void GivenTheLunarYearIs(int lunarYear)
 {
     actualZodiacGot = ZodiacYear.GetZodiac(lunarYear);
 }
Пример #4
0
 public static string GetZodiacYearName(ZodiacYear zodiacYear) => Get($"ZODIACYEAR_{zodiacYear}");