Skip to content

Commit

Permalink
Fixes buil failing (#2489)
Browse files Browse the repository at this point in the history
  • Loading branch information
msevestre authored Dec 17, 2022
1 parent 611b73c commit 541acfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/PKSim.Tests/Core/IndividualSimulationEngineSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected override async Task Context()
_simulation.Name = "Hello";
_simulation.DataRepository = new DataRepository();
_simulation.AucIV["TOTO"] = 55;
A.CallTo(_simModelManager).WithReturnType<SimulationRunResults>().Returns(new SimulationRunResults(true, Enumerable.Empty<SolverWarning>(), new DataRepository()));
A.CallTo(_simModelManager).WithReturnType<SimulationRunResults>().Returns(new SimulationRunResults(Enumerable.Empty<SolverWarning>(), new DataRepository()));
}

protected override Task Because()
Expand Down Expand Up @@ -105,7 +105,7 @@ protected override async Task Context()
{
await base.Context();
_simulation = A.Fake<IndividualSimulation>();
A.CallTo(_simModelManager).WithReturnType<SimulationRunResults>().Returns(new SimulationRunResults(true, Enumerable.Empty<SolverWarning>(), new DataRepository()));
A.CallTo(_simModelManager).WithReturnType<SimulationRunResults>().Returns(new SimulationRunResults( Enumerable.Empty<SolverWarning>(), new DataRepository()));
await sut.RunAsync(_simulation, _simulationRunOption);
}

Expand All @@ -131,7 +131,7 @@ protected override async Task Context()
await base.Context();
_simulation = A.Fake<IndividualSimulation>();
_simulationRunOption.RaiseEvents = false;
A.CallTo(_simModelManager).WithReturnType<SimulationRunResults>().Returns(new SimulationRunResults(true, Enumerable.Empty<SolverWarning>(), new DataRepository()));
A.CallTo(_simModelManager).WithReturnType<SimulationRunResults>().Returns(new SimulationRunResults( Enumerable.Empty<SolverWarning>(), new DataRepository()));
}

protected override Task Because()
Expand All @@ -156,7 +156,7 @@ protected override async Task Context()
await base.Context();
_dataRepository = A.Fake<DataRepository>();
_simulation = A.Fake<IndividualSimulation>();
A.CallTo(_simModelManager).WithReturnType<SimulationRunResults>().Returns(new SimulationRunResults(false, Enumerable.Empty<SolverWarning>(), _dataRepository));
A.CallTo(_simModelManager).WithReturnType<SimulationRunResults>().Returns(new SimulationRunResults(Enumerable.Empty<SolverWarning>(), _dataRepository));
await sut.RunAsync(_simulation, _simulationRunOption);
}

Expand Down

0 comments on commit 541acfe

Please sign in to comment.