Ejemplo n.º 1
0
        public TestDataUtility(ISponsorService service, NoorTrustDbContext dbContext,
                               UserManager <IdentityUser> userManager,
                               RoleManager <IdentityRole> roleManager
                               )
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", "service is null.");
            }

            _Service = service;

            if (dbContext == null)
            {
                throw new ArgumentNullException("dbContext", "Argument cannot be null.");
            }

            _DbContext = dbContext;

            _UserManager = userManager;
            _RoleManager = roleManager;
        }
Ejemplo n.º 2
0
 public TestController(NoorTrustDbContext context)
 {
     _context = context;
 }