Skip to content

Commit

Permalink
refactor(tests): remove resharper warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pkuehnel committed Sep 18, 2023
1 parent 6613674 commit 262a458
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ public async Task Dont_Plan_Charging_If_Min_Soc_Reached(ChargeMode chargeMode)
};

var chargeTimeCalculationService = Mock.Create<TeslaSolarCharger.Server.Services.ChargeTimeCalculationService>();
var chargingSlots = await chargeTimeCalculationService.PlanChargingSlots(car, currentDate).ConfigureAwait(false);
// ReSharper disable once UseConfigureAwaitFalse
var chargingSlots = await chargeTimeCalculationService.PlanChargingSlots(car, currentDate);

Assert.Empty(chargingSlots);
}
Expand Down Expand Up @@ -210,7 +211,8 @@ public async Task Calculate_Correct_ChargeTimes_Without_Stock_Prices(ChargeMode
};

var chargeTimeCalculationService = Mock.Create<TeslaSolarCharger.Server.Services.ChargeTimeCalculationService>();
var chargingSlots = await chargeTimeCalculationService.PlanChargingSlots(car, currentDate).ConfigureAwait(false);
// ReSharper disable once UseConfigureAwaitFalse
var chargingSlots = await chargeTimeCalculationService.PlanChargingSlots(car, currentDate);

Assert.Single(chargingSlots);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Autofac;
using FakeItEasy;
using System;
using System;
using TeslaSolarCharger.Shared.Contracts;
using TeslaSolarCharger.Shared.Dtos.Settings;
using TeslaSolarCharger.Shared.TimeProviding;
Expand Down

0 comments on commit 262a458

Please sign in to comment.