public void GetTimeZoneInfoReturnsNullUsersTimeZoneIdIsNotSet()
 {
     var principal = new ClaimsPrincipal();
     var result = principal.GetTimeZoneInfo();
     Assert.Null(result);
 }
 public void GetTimeZoneInfoReturnsCorrectTimeZoneInfoForUsersTimeZoneId()
 {
     const string timeZoneId = "Eastern Standard Time";
     var principal = new ClaimsPrincipal(new ClaimsIdentity(new[] { new Claim(AllReady.Security.ClaimTypes.TimeZoneId, timeZoneId) }));
     var result = principal.GetTimeZoneInfo();
     //b/c TimeZoneInfo.FindSystemTimeZoneById gets it's information from the registry, we'll check for non-null here
     Assert.NotNull(result);
 }