public CommentsController( UserManager <User> userManager, FindMyPetDbContext context) { this.userManager = userManager; this.context = context; }
public static FindMyPetDbContext GetContext() { var options = new DbContextOptionsBuilder <FindMyPetDbContext>() .Options; var DbContext = new FindMyPetDbContext(options); return(DbContext); }
public IndexModel( UserManager <User> userManager, SignInManager <User> signInManager, IEmailSender emailSender, FindMyPetDbContext context) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _context = context; }
public void BeforeEachTest() { this.DbContext = MockDbContext.GetContext(); }
public DeleteModel(FindMyPetDbContext context) { this.context = context; }
public AllUsersModel(FindMyPetDbContext context) { this.context = context; }
public EditModel(FindMyPetDbContext context) { this.context = context; }
public UsersController(FindMyPetDbContext context) { this.context = context; }
public CreateModel(FindMyPetDbContext context) { this.context = context; }
public void BeforeEachTest() { //we get the context from this mock class that we just created. this.DbContext = MockDbContext.GetContext(); }
public MessagesController(FindMyPetDbContext context) { this.context = context; }