コード例 #1
0
        public void GetTimeZoneById()
        {
            var services = new TimeZoneService();
            var tzs      = services.GetTimeZones();

            var timeZone = tzs[5];

            var tzLookup = services.GetTimeZoneById(timeZone.Id);

            Assert.IsNotNull(tzLookup);
            Assert.AreEqual(timeZone.DisplayName, tzLookup.DisplayName);
        }