Ejemplo n.º 1
0
 public static AtsIntegratorEntity Map(this IntegrationSystem system)
 {
     return(new AtsIntegratorEntity
     {
         id = system.Id,
         name = system.Name,
     });
 }
Ejemplo n.º 2
0
 void IIntegrationRepository.CreateIntegrationSystem(IntegrationSystem system)
 {
     using (var dc = CreateContext())
     {
         dc.AtsIntegratorEntities.InsertOnSubmit(system.Map());
         dc.SubmitChanges();
     }
 }
        public IIntegrationSystem Build(IntegrationSystem integrationSystem, Dictionary <string, string> config)
        {
            switch (integrationSystem)
            {
            case IntegrationSystem.DropBox:
                return(new DropBoxIntegration(config));

            case IntegrationSystem.Ftp:
                return(new FtpIntegration(config));

            case IntegrationSystem.GitHub:
                return(new GitHubIntegration(config));

            default: return(null);
            }
        }
Ejemplo n.º 4
0
 void IIntegrationCommand.CreateIntegrationSystem(IntegrationSystem system)
 {
     system.Prepare();
     system.Validate();
     _repository.CreateIntegrationSystem(system);
 }