private void Initialize(StudentInputDto student, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <Student>(() => new StudentCommandRepository());

            RootEntity = new Student
            {
                FirstName = student.FirstName
            };

            Enqueue(new InsertEntityCommandOperation <Student>(RootEntity, dependencies));
        }
 public CreateStudentCommandAggregate(StudentInputDto student, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(ClassesWithStudentsConnectionClass.GetConnectionName()))
 {
     Initialize(student, dependencies);
 }