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>(); }
public IndividualBuilder(IEntityBuilderFactory entityBuilderFactory, ITestAppDbContextFactory appContextFactory) : base(entityBuilderFactory, appContextFactory) { }
public StreetBuilder(IEntityBuilderFactory entityBuilderFactory, ITestAppDbContextFactory appContextFactory) : base(entityBuilderFactory, appContextFactory) { }
public AddressBuilder(IEntityBuilderFactory entityBuilderFactory, ITestAppDbContextFactory appContextFactory) : base(entityBuilderFactory, appContextFactory) { }
public Query(IEntityBuilderFactory builderFactory, IEnumerable <ExerciseRecord> exerciseList) { _builderFactory = builderFactory; _query = exerciseList; }