Ejemplo n.º 1
0
 protected override void Context()
 {
     _buildingBlockRepository = A.Fake <IBuildingBlockRepository>();
     sut = new BuildingBlockRetriever(_buildingBlockRepository);
     _allBuildingBlocks = new List <IBuildingBlock>();
     A.CallTo(() => _buildingBlockRepository.All()).Returns(_allBuildingBlocks);
 }
 protected override void Context()
 {
     _withIdRepository = A.Fake <IWithIdRepository>();
     sut = new BuildingBlockRetriever(_withIdRepository);
     _objectWithoutParent = A.Fake <IEntity>();
     _objectWithParent    = A.Fake <IEntity>();
     _objectWithoutParent.ParentContainer = null;
     _container = new Compartment();
     _container.Add(_objectWithParent);
     _individual = new Individual();
     _individual.Add(_container);
 }