示例#1
0
 protected EntityBuilderBase(
     IEntityBuilderFactory entityBuilderFactory,
     ITestAppDbContextFactory appContextFactory)
 {
     EntityBuilderFactory = entityBuilderFactory;
     _appContextFactory   = appContextFactory;
     Entity = new TEntity();
     // ReSharper disable once VirtualMemberCallInConstructor
     InitializePrimitiveValues();
 }
        public void Align()
        {
            var containerConfig = ContainerConfiguration.CreateFromAssembly(
                typeof
                (IndividualBuilderTests).Assembly);

            var serviceLocator = IntegrationTestContextBuilderFactory
                                 .StartBuilding(containerConfig)
                                 .Build()
                                 .ServiceLocator;

            _entityBuilderFactory = serviceLocator.GetService <IEntityBuilderFactory>();
        }
示例#3
0
 public IndividualBuilder(IEntityBuilderFactory entityBuilderFactory, ITestAppDbContextFactory appContextFactory) : base(entityBuilderFactory, appContextFactory)
 {
 }
示例#4
0
 public StreetBuilder(IEntityBuilderFactory entityBuilderFactory, ITestAppDbContextFactory appContextFactory) : base(entityBuilderFactory, appContextFactory)
 {
 }
示例#5
0
 public AddressBuilder(IEntityBuilderFactory entityBuilderFactory, ITestAppDbContextFactory appContextFactory) : base(entityBuilderFactory, appContextFactory)
 {
 }
示例#6
0
 public Query(IEntityBuilderFactory builderFactory, IEnumerable <ExerciseRecord> exerciseList)
 {
     _builderFactory = builderFactory;
     _query          = exerciseList;
 }