Ejemplo n.º 1
0
        public void ItShouldApplyTheCultureOfTheRenderer()
        {
            var writer         = new StringWriter();
            var settings       = new RendererSettingsBuilder().BuildSettings();
            var renderSettings = new RenderSettings
            {
                CultureInfo = new CultureInfo("ru-RU")
            };
            var stringRenderer = new StringRender(writer, settings.RendererPipeline);

            var helpers = ImmutableDictionary.CreateBuilder <string, HelperRef>();

            var helper = new Func <HelperContext, decimal>((helperContext) =>
            {
                return(helperContext.Lookup <decimal>("Count"));
            });

            helpers.Add("MyHelper", new HelperRef(helper));

            var tagRenderer = new HelperTagRenderer(helpers.ToImmutable());

            var token = new HelperToken
            {
                Name = "MyHelper",
                Args = ImmutableArray <HelperArgument> .Empty
            };

            var context = new Context(new { Count = 1.21m }, settings, renderSettings);

            tagRenderer.Write(stringRenderer, token, context);

            var res = writer.ToString();

            Assert.Equal("1,21", res);
        }
Ejemplo n.º 2
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            String cadena = this.Configuration.GetConnectionString("MySql");

            services.AddTransient <RepositoryCaja>();
            services.AddTransient <RepositoryUsuarios>();
            services.AddTransient <RepositoryClients>();
            services.AddTransient <RepositoryEmpleados>();
            services.AddTransient <RepositoryServicios>();
            services.AddTransient <RepositoryUsuarios>();
            services.AddTransient <HelperToken>();
            services.AddDbContextPool <ApiContext>
                (options => options.UseMySql(
                    cadena, ServerVersion.AutoDetect(cadena)
                    ));

            services.AddCors(options => options.AddPolicy("AlowOrigin", c => c.AllowAnyOrigin()));

            services.AddSwaggerGen(options =>
            {
                options.SwaggerDoc(name: "v1", new OpenApiInfo
                {
                    Title       = "Api MySql AWS",
                    Version     = "v1",
                    Description = "Api MySql AWS"
                });
            });
            HelperToken helper = new HelperToken(Configuration);

            //Add Authentication with the options to helper
            services.AddAuthentication(helper.GetAuthOptions()).AddJwtBearer(helper.GetJwtBearerOptions());
            services.AddControllers();
        }
Ejemplo n.º 3
0
        public void ConfigureServices(IServiceCollection services)
        {
            String cadena =
                this.Configuration.GetConnectionString("cadenahospital");

            services.AddTransient <RepositoryEmpleados>();
            services.AddTransient <HelperToken>();
            services.AddDbContext <EmpleadosContext>(options
                                                     => options.UseSqlServer(cadena));
            //SWAGGER
            services.AddSwaggerGen(
                options =>
            {
                options.SwaggerDoc(name: "v1"
                                   , new OpenApiInfo
                {
                    Title       = "Api Empleados Seguridad OAuth"
                    , Version   = "v1",
                    Description = "Ejemplo de seguridad OAuth Token"
                });
            });

            HelperToken helper = new HelperToken(Configuration);

            //AÑADIMOS AUTHENTICATION CON LAS OPCIONES DEL HELPER
            services.AddAuthentication(helper.GetAuthOptions())
            .AddJwtBearer(helper.GetJwtBearerOptions());
            services.AddControllers();
        }
Ejemplo n.º 4
0
        public void ItShouldCallHelperWhenExistsWithArgumentFromParent()
        {
            var writer         = new StringWriter();
            var settings       = new RendererSettingsBuilder().BuildSettings();
            var renderSettings = new RenderSettings();
            var stringRenderer = new StringRender(writer, settings.RendererPipeline);

            var helpers = ImmutableDictionary.CreateBuilder <string, HelperRef>();

            var helper = new Func <HelperContext, int, int, string>((helperContext, count, count2) =>
            {
                return($"<{count}-{count2}>");
            });

            helpers.Add("MyHelper", new HelperRef(helper));

            var tagRenderer = new HelperTagRenderer(helpers.ToImmutable());

            var token = new HelperToken
            {
                Name = "MyHelper",
                Args = ImmutableArray.Create(new HelperArgument("Count"), new HelperArgument("Count2"))
            };

            var context = new Context(new { Count = 10 }, settings, renderSettings)
                          .Push(new { Count2 = 20 });

            tagRenderer.Write(stringRenderer, token, context);

            var res = writer.ToString();

            Assert.Equal("<10-20>", res);
        }
Ejemplo n.º 5
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            String cadena = this.Configuration.GetConnectionString("conexionMonument");

            services.AddDbContext <ContextoUser>(options => options.UseSqlServer(cadena));
            services.AddTransient <RepositoryUsuario>();

            services.AddSwaggerGen(c => {
                c.SwaggerDoc(
                    name: "v1",
                    new OpenApiInfo
                {
                    Title       = "Api Monument Play",
                    Version     = "v1",
                    Description = "Proyecto CORE Tajamar"
                }
                    );
            });

            HelperToken helper = new HelperToken(this.Configuration);

            services.AddAuthentication(helper.GetAuthOptions()).
            AddJwtBearer(helper.GetJwtOptions());
            services.AddControllers();
        }
Ejemplo n.º 6
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            string cadena = this.Configuration.GetConnectionString("cadenaazure");

            services.AddTransient <RepositoryBeer>();
            //services.AddDbContext<BeerContext>(x => x.UseSqlServer(cadena));
            services.AddDbContextPool <BeerContext>(options => options.UseMySql(cadena, ServerVersion.AutoDetect(cadena)));

            services.AddCors(c =>
            {
                c.AddPolicy("AllowOrigin", options => options.AllowAnyOrigin());
            });

            services.AddSwaggerGen(x =>
            {
                x.SwaggerDoc(name: "v1", new OpenApiInfo
                {
                    Title       = "Api Project Beer",
                    Version     = "v1",
                    Description = "Api Project Beer"
                });
            });

            HelperToken helper = new HelperToken(this.Configuration);

            //AÑADIMOS AUTENTIFICACION A NUESTRO SERVICIO
            services.AddAuthentication(helper.GetAuthOptions())
            .AddJwtBearer(helper.GetJwtOptions());

            services.AddControllers();
        }
Ejemplo n.º 7
0
        public void ItShouldRenderWhenTypesNotMatchCanBeConverted()
        {
            var writer         = new StringWriter();
            var settings       = new RendererSettingsBuilder().BuildSettings();
            var renderSettings = new RenderSettings();
            var stringRenderer = new StringRender(writer, settings.RendererPipeline);

            var helpers = ImmutableDictionary.CreateBuilder <string, HelperRef>();

            var helper = new Func <HelperContext, int, string>((helperContext, count) =>
            {
                return($"<{count}>");
            });

            helpers.Add("MyHelper", new HelperRef(helper));

            var tagRenderer = new HelperTagRenderer(helpers.ToImmutable());

            var token = new HelperToken
            {
                Name = "MyHelper",
                Args = ImmutableArray.Create(new HelperArgument("Count"))
            };

            var context = new Context(new { Count = "10" }, settings, renderSettings);

            tagRenderer.Write(stringRenderer, token, context);

            var res = writer.ToString();

            Assert.Equal("<10>", res);
        }
Ejemplo n.º 8
0
        public void ItShouldRenderAllowHelpersWithNoArguments()
        {
            var writer         = new StringWriter();
            var settings       = new RendererSettingsBuilder().BuildSettings();
            var renderSettings = new RenderSettings();
            var stringRenderer = new StringRender(writer, settings.RendererPipeline);

            var helpers = ImmutableDictionary.CreateBuilder <string, HelperRef>();

            var helper = new Func <HelperContext, string>((helperContext) =>
            {
                return($"<{helperContext.Lookup<int>("Count")}>");
            });

            helpers.Add("MyHelper", new HelperRef(helper));

            var tagRenderer = new HelperTagRenderer(helpers.ToImmutable());

            var token = new HelperToken
            {
                Name = "MyHelper",
                Args = ImmutableArray <HelperArgument> .Empty
            };

            var context = new Context(new { Count = 10 }, settings, renderSettings);

            tagRenderer.Write(stringRenderer, token, context);

            var res = writer.ToString();

            Assert.Equal("<10>", res);
        }
Ejemplo n.º 9
0
        public void ItShouldRenderNothingWhenHelperDoesntExist()
        {
            var writer         = new StringWriter();
            var settings       = new RendererSettingsBuilder().BuildSettings();
            var renderSettings = new RenderSettings();
            var stringRenderer = new StringRender(writer, settings.RendererPipeline);

            var helpers = ImmutableDictionary.Create <string, HelperRef>();

            var tagRenderer = new HelperTagRenderer(helpers);

            var token = new HelperToken
            {
                Name = "MyHelper",
                Args = ImmutableArray <HelperArgument> .Empty
            };

            var context = new Context(new { Count = 10 }, settings, renderSettings);

            tagRenderer.Write(stringRenderer, token, context);

            var res = writer.ToString();

            Assert.Equal("", res);
        }
Ejemplo n.º 10
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            string cadenadeConexion = this.Configuration.GetConnectionString("cadenasql");

            services.AddSwaggerGen(
                options =>
            {
                options.SwaggerDoc(
                    name: "v1", new OpenApiInfo
                {
                    Title       = "Api Series",
                    Version     = "v1",
                    Description = "Api alex gonzgm para examen"
                });
            });
            services.AddControllers();


            services.AddTransient <SeriesRepository>();
            services.AddDbContext <ApplicationDbContext>(options => options.UseSqlServer(cadenadeConexion));
            HelperToken helper = new HelperToken(this.Configuration);

            services.AddAuthentication(helper.GetAuthOptions())
            .AddJwtBearer(helper.GetJwtOptions());

            services.AddControllers();
        }
Ejemplo n.º 11
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            String cnn = this.Configuration.GetConnectionString("sqllicoreria");

            services.AddTransient <IRepositoryLicoreria, RepositoryLicoreria>();
            services.AddDbContext <LicoreriaContext>(options => options.UseSqlServer(cnn));

            services.AddSwaggerGen(
                options =>
            {
                options.SwaggerDoc(name: "v1", new OpenApiInfo
                {
                    Title       = "Api Licoreria",
                    Version     = "1.0",
                    Description = "Api Licoreria Azure"
                });
            });

            HelperToken helper = new HelperToken(Configuration);

            services.AddAuthentication(helper.GetAuthOptions())
            .AddJwtBearer(helper.GetJwtBearerOptions());

            services.AddControllers();
        }
Ejemplo n.º 12
0
        public void ItShouldHandleNullReturnFromHelper()
        {
            var writer         = new StringWriter();
            var settings       = new RendererSettingsBuilder().BuildSettings();
            var renderSettings = new RenderSettings();
            var stringRenderer = new StringRender(writer, settings.RendererPipeline);

            var helpers = ImmutableDictionary.CreateBuilder <string, HelperRef>();

            var helper = new Func <HelperContext, object>((helperContext) =>
            {
                return(null);
            });

            helpers.Add("MyHelper", new HelperRef(helper));

            var tagRenderer = new HelperTagRenderer(helpers.ToImmutable());

            var token = new HelperToken
            {
                Name = "MyHelper",
                Args = ImmutableArray <HelperArgument> .Empty
            };

            var context = new Context(new { Count = 1.21m }, settings, renderSettings);

            tagRenderer.Write(stringRenderer, token, context);

            var res = writer.ToString();

            Assert.Equal("", res);
        }
Ejemplo n.º 13
0
        public void ConfigureServices(IServiceCollection services)
        {
            HelperToken helpertoken    = new HelperToken(this.Configuration);
            String      cadenaconexion =
                Configuration.GetConnectionString("cadenahospitalazure");

            services.AddDbContext <EmpleadosContext>(options =>
                                                     options.UseSqlServer(cadenaconexion));
            services.AddTransient <RepositoryEmpleados>();
            services.AddAuthentication(helpertoken.GetAuthOptions())
            .AddJwtBearer(helpertoken.GetJwtOptions());
            services.AddMvc();
        }
Ejemplo n.º 14
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            String cadena = Configuration.GetConnectionString("cadena");

            services.AddControllers();
            services.AddDbContext <ContextoProject>(options => options.UseSqlServer(cadena));
            services.AddSwaggerGen(s => s.SwaggerDoc(name: "v1", new OpenApiInfo {
                Title = "Api CRUD Departamentos", Version = "v1", Description = "Seguimos"
            }));
            HelperToken helper = new HelperToken(Configuration);

            services.AddAuthentication(helper.GetAuthOptions()).AddJwtBearer(helper.GetJwtOptions());
            services.AddTransient <RepositorioProject>();
        }
Ejemplo n.º 15
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddAuthentication(
                options =>
            {
                options.DefaultSignInScheme       = CookieAuthenticationDefaults.AuthenticationScheme;
                options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                options.DefaultChallengeScheme    = CookieAuthenticationDefaults.AuthenticationScheme;
            }).AddCookie();
            services.AddSwaggerGen(
                options =>
            {
                options.SwaggerDoc(name: "v2", new OpenApiInfo {
                    Title       = "Api Essup",
                    Version     = "v2",
                    Description = "Api para acceder a los metodos de la app Essup"
                });
            }
                );

            //para el controll de formularios mediante keys
            services.AddAntiforgery();
            services.AddMemoryCache();
            String cadena = this.Config.GetConnectionString("awsmysql");

            //indicamos el contexto y el acceso a la base de datos
            services.AddDbContextPool <Context>(options => options.UseMySql(cadena, ServerVersion.AutoDetect(cadena))); services.AddSingleton <IConfiguration>(this.Config);
            services.AddTransient <IRepositoryEssup, RepositoryEssup>();
            //acceso a Geojson
            //acceso a rutas del servidor
            services.AddSingleton <PathService>();
            services.AddSingleton <UploadLocalFile>();
            services.AddSingleton <EmailService>();

            //Token configuration
            services.AddTransient <HelperToken>();
            HelperToken token = new HelperToken(this.Config);

            services.AddAuthentication(token.GetAuthenticationOptions()).AddJwtBearer(token.GetJwtBearerOptions());

            //sesion
            services.AddDistributedMemoryCache();
            services.AddSession(options =>
            {
                options.IdleTimeout = TimeSpan.FromMinutes(15);
            });

            services.AddControllersWithViews(options => options.EnableEndpointRouting = false);
        }
Ejemplo n.º 16
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            HelperToken helpertoken    = new HelperToken(this.Configuration);
            String      cadenaconexion = Configuration.GetConnectionString("cadenaazure");

            services.AddDbContext <MinijuegosContex>(options => options.UseSqlServer(cadenaconexion));
            services.AddTransient <IRepositoryMinijuegos, RepositoryMinijuegos>();
            services.AddAuthentication(helpertoken.GetAuthOptions())
            .AddJwtBearer(helpertoken.GetJwtOptions());
            services.AddMvc();



            services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
        }
Ejemplo n.º 17
0
    void CreateHelperTokens()
    {
        RoleData dataToUse = SwappedRoleData ? SwappedRoleData : RoleData;

        foreach (var helperTokenSprite in dataToUse.HelperTokenSprites)
        {
            GameObject helperTokenObj = Instantiate(HelperTokenPrefab);
            helperTokenObj.transform.SetParent(GrimoireManager.Instance.HelperTokenAttach.transform);
            helperTokenObj.transform.localScale = Vector3.one;

            HelperToken helperToken = helperTokenObj.GetComponentInChildren <HelperToken>();
            helperToken.SetSprite(helperTokenSprite);

            HelperTokens.Add(helperToken);
        }
    }
Ejemplo n.º 18
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            HelperToken helpertoken = new HelperToken(this.Configuration);

            String cadenaConexionAzure = this.Configuration.GetConnectionString("conexionAzure");

            services.AddDbContext <IMyListContext, MyListContext>(options => options.UseSqlServer(cadenaConexionAzure));

            services.AddTransient <IRepositoryLists, RepositoryLists>();
            services.AddTransient <IRepositoryProducts, RepositoryProducts>();
            services.AddTransient <IRepositoryUser, RepositoryUser>();

            services.AddAuthentication(helpertoken.GetAuthOptions()).AddJwtBearer(helpertoken.GetJwtOptions());

            services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
        }
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            String bbdd = Configuration.GetConnectionString("cadenaazure");

            services.AddDbContext <ProyectoContext>(options => options.UseSqlServer(bbdd));
            services.AddTransient <RepositoryProyecto>();
            services.AddTransient <HelperCorreo>();
            services.AddTransient <StorageHelper>();
            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc(name: "v1", new OpenApiInfo {
                    Title = "Api Proyecto Crackchecker", Version = "v1", Description = "API para el proyecto Crackchecker de Tajamar"
                });
            });
            HelperToken helper = new HelperToken(this.Configuration);

            services.AddAuthentication(helper.GetAuthOptions()).AddJwtBearer(helper.GetJwtOptions());
            services.AddControllers();
        }
Ejemplo n.º 20
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            string cadena = Configuration.GetConnectionString("conexionHospitalAzure");

            services.AddDbContext <IContextoAPPHospital, ContextoAPPHospitalSQL>(options => options.UseSqlServer(cadena));
            services.AddTransient <IRepositoryHospital, IRepositoryHospitalSQL>();

            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc(name: "v1", new OpenApiInfo {
                    Title = "API Hospital", Version = "v1", Description = "APP Hospital"
                });
            });

            HelperToken helper = new HelperToken(this.Configuration);

            services.AddAuthentication(helper.GetAuthOptions()).AddJwtBearer(helper.GetJwtOptions());

            services.AddControllersWithViews().AddNewtonsoftJson(options => options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);
        }
Ejemplo n.º 21
0
        public void ConfigureServices(IServiceCollection services)
        {
            String cadena = this.Configuration.GetConnectionString("SeriesSQL");

            services.AddTransient <RepositorySeries>();
            services.AddTransient <HelperToken>();
            services.AddDbContext <SeriesContext>(options => options.UseSqlServer(cadena));

            services.AddSwaggerGen(options => {
                options.SwaggerDoc(name: "v1", new OpenApiInfo {
                    Title       = "Api Series",
                    Version     = "v1",
                    Description = "Api Series Práctica Azure 2021"
                });
            });
            HelperToken helpers = new HelperToken(Configuration);

            services.AddAuthentication(helpers.GetAuthOptions()).
            AddJwtBearer(helpers.GetJwtBearerOptions());
            services.AddControllers();
        }
Ejemplo n.º 22
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            String cadena = this.Configuration.GetConnectionString("cadenamysql");

            services.AddTransient <RepositoryProductos>();
            services.AddTransient <RepositoryUsuarios>();
            services.AddTransient <RepositoryCategoria>();
            services.AddTransient <RepositoryPedidos>();
            services.AddTransient <HelperToken>();

            services.AddDbContext <TiendaContext>(options =>
                                                  //options.UseSqlServer(cadena)
                                                  options.UseMySql(
                                                      cadena, ServerVersion.AutoDetect(cadena)
                                                      ));



            //SWAGGER
            services.AddSwaggerGen(
                options =>
            {
                options.SwaggerDoc(name: "v1"
                                   , new OpenApiInfo
                {
                    Title = "Api Tienda"
                    ,
                    Version = "v1",
                    //Description = "Ejemplo de seguridad OAuth Token"
                });
            });

            HelperToken helper = new HelperToken(Configuration);

            services.AddAuthentication(helper.GetAuthOptions())
            .AddJwtBearer(helper.GetJwtBearerOptions());


            services.AddControllers();
        }
Ejemplo n.º 23
0
        public void ItShouldRenderWhenTypesMatchBaseType()
        {
            var writer         = new StringWriter();
            var settings       = new RendererSettingsBuilder().BuildSettings();
            var renderSettings = new RenderSettings();
            var stringRenderer = new StringRender(writer, settings.RendererPipeline);

            var helpers = ImmutableDictionary.CreateBuilder <string, HelperRef>();

            var helper = new Func <HelperContext, object, string>((helperContext, src) =>
            {
                if (!(src is IDictionary <object, object> dic))
                {
                    return(string.Empty);
                }
                return($"<{dic["value"]}>");
            });

            helpers.Add("MyHelper", new HelperRef(helper));

            var tagRenderer = new HelperTagRenderer(helpers.ToImmutable());

            var token = new HelperToken
            {
                Name = "MyHelper",
                Args = ImmutableArray.Create(new HelperArgument("Count"))
            };

            var context = new Context(new { Count = new Dictionary <object, object> {
                                                { "value", "10" }
                                            } }, settings, renderSettings);

            tagRenderer.Write(stringRenderer, token, context);

            var res = writer.ToString();

            Assert.Equal("<10>", res);
        }
Ejemplo n.º 24
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            String connectionStr = Configuration.GetConnectionString("dineroazure");

            services.AddTransient <IUserRepository, UserRepository>();
            services.AddTransient <IRepository <Product>, ProductRepository>();
            services.AddTransient <IRepository <Resource>, ResourceRepository>();
            services.AddTransient <BlobsRepository>();
            services.AddDbContext <IMoneyContext, MoneyContext>(options => options.UseSqlServer(connectionStr));

            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc(name: "v1", new OpenApiInfo {
                    Title       = "Api Proyecto Dinero", Version = "v1",
                    Description = "Obtención Datos Dinero"
                });
            });

            HelperToken helper = new HelperToken(this.Configuration);

            services.AddAuthentication(helper.GetAuthOptions()).AddJwtBearer(helper.GetJwtOptions());
            services.AddControllers();
        }
Ejemplo n.º 25
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            String cadena = Configuration.GetConnectionString("clinicaazure");

            services.AddTransient <RepositoryClinica>();
            services.AddDbContext <ContextoClinica>(options => options.UseSqlServer(cadena));

            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc(
                    name: "v1", new OpenApiInfo
                {
                    Title       = "Api Crud Clinica",
                    Version     = "v1",
                    Description = "Api de usuarios y consultas de la clínica"
                });
            });
            HelperToken helper = new HelperToken(this.Configuration);

            services.AddAuthentication(helper.GetAuthOptions()).AddJwtBearer(helper.GetJwtOptions());
            services.AddControllers();

            services.AddSignalR();
        }
Ejemplo n.º 26
0
 public AuthController(IUserRepository repo, IConfiguration configuration, BlobsRepository blob)
 {
     this.repo   = repo;
     this.helper = new HelperToken(configuration);
     this.blob   = blob;
 }
 public AuthController(RepositoryEmpleados repo
                       , HelperToken helpertoken)
 {
     this.repo        = repo;
     this.helpertoken = helpertoken;
 }
Ejemplo n.º 28
0
 public LoginController(IRepositoryEssup repo, HelperToken helperToken)
 {
     this.repo        = repo;
     this.helperToken = helperToken;
 }
Ejemplo n.º 29
0
 public ManageController(IRepositoryHospital repo, IConfiguration configuration)
 {
     this.repo   = repo;
     this.helper = new HelperToken(configuration);
 }
Ejemplo n.º 30
0
 public AuthController(RepositoryUsuario repo, IConfiguration configuration)
 {
     this.helper = new HelperToken(configuration);
     this.repo   = repo;
 }