protected override void Context()
 {
     base.Context();
     _neighborhoodRepository                       = A.Fake <IFlatNeighborhoodRepository>();
     _modelContainerRepository                     = A.Fake <IFlatModelContainerRepository>();
     _neighborhoodBuilderFactory                   = A.Fake <INeighborhoodBuilderFactory>();
     _modelProperties                              = A.Fake <ModelProperties>();
     _modelProperties.ModelConfiguration           = A.Fake <ModelConfiguration>();
     _modelProperties.ModelConfiguration.ModelName = "3Comp";
     _allFlatNeighborhoods                         = new List <FlatModelContainer>();
     A.CallTo(() => _modelContainerRepository.All()).Returns(_allFlatNeighborhoods);
     _flatNeighborhoodFor3Comp = new FlatModelContainer {
         Model = "3Comp", Type = CoreConstants.ContainerType.NEIGHBORHOOD, Id = 1
     };
     _flatNeighborhoodFor4Comp = new FlatModelContainer {
         Model = "4Comp", Type = CoreConstants.ContainerType.NEIGHBORHOOD, Id = 2
     };
     _allFlatNeighborhoods.Add(_flatNeighborhoodFor3Comp);
     _allFlatNeighborhoods.Add(_flatNeighborhoodFor4Comp);
     sut = new ModelNeighborhoodQuery(_modelContainerRepository, _neighborhoodBuilderFactory);
 }
 protected override void Context()
 {
     _flatNeighborhoodRepository = A.Fake <IFlatNeighborhoodRepository>();
     _flatContainerRepository    = A.Fake <IFlatContainerRepository>();
     sut = new NeighborhoodFinalizer(_flatNeighborhoodRepository, _flatContainerRepository);
 }
Пример #3
0
 public NeighborhoodFinalizer(IFlatNeighborhoodRepository flatNeighborhoodRepository, IFlatContainerRepository flatContainerRepository)
 {
     _flatNeighborhoodRepository = flatNeighborhoodRepository;
     _flatContainerRepository    = flatContainerRepository;
 }