public void GetTimeZones() { var services = new TimeZoneService(); var tzs = services.GetTimeZones(); Assert.AreEqual(140, tzs.Count); }
public IHttpActionResult GetTimeZones() { try { return(Ok(_timeZoneService.GetTimeZones())); } catch (Exception ex) { return(InternalServerError(ex)); } }
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); }