예제 #1
0
 protected override void Context()
 {
     _outputIntervalFactory = A.Fake <IOutputIntervalFactory>();
     _executionContext      = A.Fake <IExecutionContext>();
     _containerTask         = A.Fake <IContainerTask>();
     sut = new SimulationSettingsTask(_executionContext, _outputIntervalFactory, _containerTask);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 public SimulationSettingsTask(IExecutionContext executionContext, IOutputIntervalFactory outputIntervalFactory, IContainerTask containerTask)
 {
     _executionContext      = executionContext;
     _outputIntervalFactory = outputIntervalFactory;
     _containerTask         = containerTask;
 }