示例#1
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);
 }
示例#2
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);
 }