Esempio n. 1
0
 private void Creeer(CreeerModuleCommand creeerModule)
 {
     Apply(new ModuleGecreeerd
     {
         ModuleNaam     = creeerModule.ModuleNaam,
         ModuleCode     = creeerModule.ModuleCode,
         AantalEc       = creeerModule.AantalEc,
         Cohort         = creeerModule.Cohort,
         Studiefase     = creeerModule.Studiefase,
         Competenties   = creeerModule.Competenties,
         Eindeisen      = creeerModule.Eindeisen,
         VerplichtVoor  = creeerModule.VerplichtVoor,
         AanbevolenVoor = creeerModule.AanbevolenVoor
     });
 }
Esempio n. 2
0
        public CreeerModuleCommandResponse SendCreeerModuleCommand(Module module)
        {
            CreeerModuleCommand command = new CreeerModuleCommand()
            {
                Cohort         = module.Cohort,
                Competenties   = module.Competenties,
                ModuleCode     = module.ModuleCode,
                ModuleNaam     = module.ModuleNaam,
                Eindeisen      = module.Eindeisen,
                Studiefase     = module.Studiefase,
                VerplichtVoor  = module.VerplichtVoor,
                AanbevolenVoor = module.AanbevolenVoor
            };

            CreeerModuleCommandResponse result = _publisher.PublishAsync <CreeerModuleCommandResponse>(command).Result;

            return(result);
        }
Esempio n. 3
0
 public Module(CreeerModuleCommand creeerModuleCommand) => Creeer(creeerModuleCommand);