示例#1
0
 public CreatePersonCommandHandler(
     IPersonCreator personCreator,
     IPersonRepository personRepository)
 {
     PersonCreator    = personCreator;
     PersonRepository = personRepository;
 }
示例#2
0
 public SchoolClassBuilder(IClassAssigner classAssigner, IPersonCreator personCreator, ITestBuilder testBuilder, ICourseManager courseManager, ITestAssigner testAssigner)
 {
     terms              = new List <Term>();
     classes            = new List <SchoolClass>();
     this.classAssigner = classAssigner;
     this.personCreator = personCreator;
     this.testBuilder   = testBuilder;
     this.courseManager = courseManager;
     this.testAssigner  = testAssigner;
 }
示例#3
0
        public HouseholdWrapper(IHousehold household)
        {
            _household = household;

            _exporter =
                Global
                .Kernel
                .Get <IPersistenceFactory <IHousehold> >()
                .Exporter;

            // person fields

            _personReader =
                Global
                .Kernel
                .Get <IPersistenceFactory <IPerson> >()
                .Reader;

            _personCreator =
                Global
                .Kernel
                .Get <IWrapperFactory <IPersonCreator> >()
                .Creator;

            // household day fields

            _householdDayReader =
                Global
                .Kernel
                .Get <IPersistenceFactory <IHouseholdDay> >()
                .Reader;

            _householdDayCreator =
                Global
                .Kernel
                .Get <IWrapperFactory <IHouseholdDayCreator> >()
                .Creator;

            RandomUtility = new RandomUtility();
        }
示例#4
0
 public PersonProvider(IPersonCreator creator) => this.creator = creator;
示例#5
0
 public PersonCreator(IPersonCreator personCreator)
 {
     _personCreator = personCreator;
 }