Exemple #1
0
        public void Customize(IFixture fixture)
        {
            var cachedTypesProvider = new CachedEntityTypesProvider(_entityTypesProvider);

            fixture.Customizations.Insert(0,
                                          new FilteringSpecimenBuilder(
                                              new Postprocessor(
                                                  new EntitySpecimenBuilder(),
                                                  new AutoPropertiesCommand(
                                                      new InverseRequestSpecification(
                                                          new OrRequestSpecification(
                                                              new NavigationPropertyRequestSpecification(cachedTypesProvider),
                                                              new InterceptorsFieldRequestSpecification())))),
                                              new EntityRequestSpecification(cachedTypesProvider)));
        }
        public void Customize(IFixture fixture)
        {
            var cachedTypesProvider = new CachedEntityTypesProvider(_entityTypesProvider);

            fixture.Customizations.Insert(0,
                new FilteringSpecimenBuilder(
                    new Postprocessor(
                        new EntitySpecimenBuilder(),
                        new AutoPropertiesCommand(
                            new InverseRequestSpecification(
                                new OrRequestSpecification(
                                    new NavigationPropertyRequestSpecification(cachedTypesProvider),
                                    new InterceptorsFieldRequestSpecification())))),
                    new EntityRequestSpecification(cachedTypesProvider)));

        }