Ejemplo n.º 1
0
 public ArticlesController(IArticlesManager articlesManager, IMapper mapper, ICategoriesManager categoriesManager, IEnumManager enumManager, ILogChangesManager logChangesManager) : base(logChangesManager)
 {
     _articlesManager   = articlesManager;
     _mapper            = mapper;
     _categoriesManager = categoriesManager;
     _enumManager       = enumManager;
 }
Ejemplo n.º 2
0
 public QuizzesController(IQuizzesManager quizzesManager, IDomainsManager domainManager, IAspectsManager aspectsManager, IEnumManager enumManager)
 {
     _quizzesManager = quizzesManager;
     _domainManager  = domainManager;
     _aspectsManager = aspectsManager;
     _enumManager    = enumManager;
 }
Ejemplo n.º 3
0
 public AspectsController(IAspectsManager aspectsManager, IDomainsManager domainsManager, IActionsManager actionsManager, IMapper mapper, IEnumManager enumManager, ILogChangesManager logChangesManager) : base(logChangesManager)
 {
     _aspectsManager = aspectsManager;
     _actionsManager = actionsManager;
     _domainsManager = domainsManager;
     _mapper         = mapper;
     _enumManager    = enumManager;
 }
Ejemplo n.º 4
0
 static EnumModels()
 {
     _enumManager = new EnumManager(new EnumRepository(new DatabaseFactory()));
     //_tiposDeData = _enumManager.GetTipoDeDatos().Result as IList<TipoDeDato>;
     _modulos                = _enumManager.GetModulos().Result as IList <Modulo>;
     _leyes                  = _enumManager.GetModulos().Result as IList <Leyes>;
     _tiposDePatente         = _enumManager.GetTiposDePatente().Result as IList <TiposDeRegistro>;
     _tiposDeObra            = _enumManager.GetTiposDeObra().Result as IList <TiposDeRegistro>;
     _tiposDeRegistroDeMarca = _enumManager.GetTiposDeRegistroDeMarca().Result as IList <TiposDeRegistro>;
     _tiposDeAnotaciones     = _enumManager.GetTiposDeAnotaciones().Result as IList <TiposDeRegistro>;
     _Paises                 = _enumManager.GetPaises().Result as IList <Pais>;
     _clasificaciones        = _enumManager.GetClasificaciones().Result as IList <Clasificacion>;
 }
Ejemplo n.º 5
0
        public static void Initialize(TestContext testContext)
        {
            Mock <IEnumDescriptor> enumDescriptorMock = new Mock <IEnumDescriptor>();

            enumDescriptorMock.Setup(instance => instance.DataType).Returns(typeof(int));
            enumDescriptorMock.Setup(instance => instance.Enumerations).Returns(new List <string>()
            {
                "e1,1"
            });
            enumDescriptorMock.Setup(instance => instance.EnumName).Returns("TesztEnum");
            enumDescriptor = enumDescriptorMock.Object;

            Mock <IEnumTypeGenerator> enumTypeGeneratorMock = new Mock <IEnumTypeGenerator>();

            enumTypeGeneratorMock.Setup(instance => instance.CreateEnumType(It.IsAny <IEnumDescriptor>())).Returns(typeof(TesztEnum));

            enumGenerator = enumTypeGeneratorMock.Object;

            enumManager = new EnumManager(enumGenerator);
        }
Ejemplo n.º 6
0
 public EnumController(IEnumManager enumManager)
 {
     _enumManager = enumManager;
 }
Ejemplo n.º 7
0
 public Client(IEnumManager enumManager)
 {
     EnumManager = enumManager;
 }
Ejemplo n.º 8
0
 public SectionsController(ISectionsManager sectionManager, IEnumManager enumManager, IMapper mapper, ILogChangesManager logChangesManager) : base(logChangesManager, mapper, sectionManager)
 {
     _enumManager = enumManager;
 }
Ejemplo n.º 9
0
 public ActionsController(IActionsManager actionsManager, IMapper mapper, IEnumManager enumerationManager, ILogChangesManager logChangesManager) : base(logChangesManager)
 {
     _mapper             = mapper;
     _actionsManager     = actionsManager;
     _enumerationManager = enumerationManager;
 }