protected override void Context() { _outputIntervalFactory = A.Fake <IOutputIntervalFactory>(); _executionContext = A.Fake <IExecutionContext>(); _containerTask = A.Fake <IContainerTask>(); sut = new SimulationSettingsTask(_executionContext, _outputIntervalFactory, _containerTask); }
protected override void Context() { _objectBaseFactory = A.Fake <IObjectBaseFactory>(); _outputIntervalFactory = A.Fake <IOutputIntervalFactory>(); _dimensionRepository = A.Fake <IDimensionRepository>(); _timeDimension = DomainHelperForSpecs.TimeDimensionForSpecs(); _dayUnit = _timeDimension.Unit(CoreConstants.Units.Days); A.CallTo(() => _dimensionRepository.Time).Returns(_timeDimension); sut = new OutputSchemaFactory(_objectBaseFactory, _outputIntervalFactory, _dimensionRepository); }
protected override void Context() { _objectBaseFactory = A.Fake <IObjectBaseFactory>(); _outputIntervalFactory = A.Fake <IOutputIntervalFactory>(); _dimensionRepository = A.Fake <IDimensionRepository>(); _displayUnitRetriever = A.Fake <IDisplayUnitRetriever>(); _timeDimension = A.Fake <IDimension>(); _dayUnit = A.Fake <Unit>(); A.CallTo(() => _dimensionRepository.Time).Returns(_timeDimension); A.CallTo(() => _timeDimension.Unit(CoreConstants.Units.Days)).Returns(_dayUnit); sut = new OutputSchemaFactory(_objectBaseFactory, _outputIntervalFactory, _dimensionRepository, _displayUnitRetriever); }
public SimulationSettingsTask(IExecutionContext executionContext, IOutputIntervalFactory outputIntervalFactory, IContainerTask containerTask) { _executionContext = executionContext; _outputIntervalFactory = outputIntervalFactory; _containerTask = containerTask; }