From b28e49d6d7f96d43f893d7ed9f0c8be0cdcd8063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ra=20El-Saig?= Date: Wed, 20 Nov 2024 19:36:04 +0100 Subject: [PATCH] Rename param. --- .../ShortcutsUITestContextExtensions.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs b/Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs index 89591bcfc..53de816e7 100644 --- a/Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs +++ b/Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs @@ -746,23 +746,23 @@ public static Task ExecuteJsonRecipeSiteSettingAsync(this UITestContext conte /// /// Sets the time shift to a specific value. /// - 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(controller => controller.Set(timeSpan.TotalDays, 0)) - : context.GoToAsync(controller => controller.Set(0, timeSpan.TotalSeconds)); + return time.TotalDays >= 1.0 + ? context.GoToAsync(controller => controller.Set(time.TotalDays, 0)) + : context.GoToAsync(controller => controller.Set(0, time.TotalSeconds)); } /// /// Adds the specified value to the time shift. /// - 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(controller => controller.Add(timeSpan.TotalDays, 0)) - : context.GoToAsync(controller => controller.Add(0, timeSpan.TotalSeconds)); + return time.TotalDays >= 1.0 + ? context.GoToAsync(controller => controller.Add(time.TotalDays, 0)) + : context.GoToAsync(controller => controller.Add(0, time.TotalSeconds)); } ///