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; }
public TestController(NoorTrustDbContext context) { _context = context; }