protected override void Context() { _simulation = A.Fake <IModelCoreSimulation>(); _dimensionFactory = new DimensionFactoryForIntegrationTests(); _dimensionFactory.AddDimension(DomainHelperForSpecs.TimeDimensionForSpecs()); _dimensionFactory.AddDimension(DomainHelperForSpecs.ConcentrationDimensionForSpecs()); sut = new SimulationPKAnalysesImporter(_dimensionFactory); }
private static void fillDimensions(IDimensionFactory dimensionFactory) { var persistor = IoC.Resolve <IDimensionFactoryPersistor>(); persistor.Load(dimensionFactory, Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "OSPSuite.Dimensions.xml")); dimensionFactory.AddDimension(Constants.Dimension.NO_DIMENSION); }