Skip to content

Commit

Permalink
Rename param.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Nov 20, 2024
1 parent 4f09a1d commit b28e49d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -746,23 +746,23 @@ public static Task ExecuteJsonRecipeSiteSettingAsync<T>(this UITestContext conte
/// <summary>
/// Sets the time shift to a specific value.
/// </summary>
public static Task SetShiftTimeAsync(this UITestContext context, TimeSpan timeSpan)
public static Task SetShiftTimeAsync(this UITestContext context, TimeSpan time)
{
context.EnsureValidOrchardCoreTenantScope();
return timeSpan.TotalDays >= 1.0
? context.GoToAsync<TimeShiftController>(controller => controller.Set(timeSpan.TotalDays, 0))
: context.GoToAsync<TimeShiftController>(controller => controller.Set(0, timeSpan.TotalSeconds));
return time.TotalDays >= 1.0
? context.GoToAsync<TimeShiftController>(controller => controller.Set(time.TotalDays, 0))
: context.GoToAsync<TimeShiftController>(controller => controller.Set(0, time.TotalSeconds));
}

/// <summary>
/// Adds the specified value to the time shift.
/// </summary>
public static Task AddShiftTimeAsync(this UITestContext context, TimeSpan timeSpan)
public static Task AddShiftTimeAsync(this UITestContext context, TimeSpan time)
{
context.EnsureValidOrchardCoreTenantScope();
return timeSpan.TotalDays >= 1.0
? context.GoToAsync<TimeShiftController>(controller => controller.Add(timeSpan.TotalDays, 0))
: context.GoToAsync<TimeShiftController>(controller => controller.Add(0, timeSpan.TotalSeconds));
return time.TotalDays >= 1.0
? context.GoToAsync<TimeShiftController>(controller => controller.Add(time.TotalDays, 0))
: context.GoToAsync<TimeShiftController>(controller => controller.Add(0, time.TotalSeconds));
}

/// <summary>
Expand Down

0 comments on commit b28e49d

Please sign in to comment.