-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1945 proposal for parameters in individual (#1950)
* WIP #1945. Write tests firt * WIP #1945. Write tests firt * Fixes #1945 * REmove empty test file * Unify model and config in a ModelConfiguration * Also update NUnit * Some tests concurrency issue? * Update config
- Loading branch information
Showing
32 changed files
with
449 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace OSPSuite.Core.Domain.Builder | ||
{ | ||
public class ModelConfiguration | ||
{ | ||
public IModel Model { get; } | ||
public SimulationConfiguration SimulationConfiguration { get; } | ||
|
||
public ModelConfiguration(IModel model, SimulationConfiguration simulationConfiguration) | ||
{ | ||
Model = model; | ||
SimulationConfiguration = simulationConfiguration; | ||
} | ||
|
||
public bool ShouldValidate => SimulationConfiguration.ShouldValidate; | ||
|
||
public void Deconstruct(out IModel model, out SimulationConfiguration simulationConfiguration) | ||
{ | ||
model = Model; | ||
simulationConfiguration = SimulationConfiguration; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.