private void Initialize(CreateRoleInputDto role, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <Role>(() => new RoleCommandRepository());

            RootEntity = new Role
            {
                Name = role.Name
            };

            Enqueue(new InsertEntityCommandOperation <Role>(RootEntity, dependencies));
        }
 public CreateRoleCommandAggregate(CreateRoleInputDto role, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(AuthorizationConnectionClass.GetConnectionName()))
 {
     Initialize(role, dependencies);
 }