protected override void Context() { base.Context(); _pathElements = new PathElements(); _simulation = A.Fake <ISimulation>().WithName("Sim"); var baseGrid = new BaseGrid("Time", DomainHelperForSpecs.TimeDimensionForSpecs()); _column = new DataColumn("A", DomainHelperForSpecs.ConcentrationDimensionForSpecs(), baseGrid); _repository = new DataRepository().WithName("Rep"); A.CallTo(() => _dataColumnToPathElementsMapper.MapFrom(_column, A <IContainer> ._)).Returns(_pathElements); _pathElements[PathElementId.Simulation] = new PathElement { DisplayName = "Sim" }; _pathElements[PathElementId.Container] = new PathElement { DisplayName = "Cont" }; _pathElements[PathElementId.Molecule] = new PathElement { DisplayName = "Drug" }; }
protected override void Because() { _result = sut.MapFrom(_rootContainer, _path); }