Exemplo n.º 1
0
 public CommentsController(
     UserManager <User> userManager,
     FindMyPetDbContext context)
 {
     this.userManager = userManager;
     this.context     = context;
 }
Exemplo n.º 2
0
        public static FindMyPetDbContext GetContext()
        {
            var options = new DbContextOptionsBuilder <FindMyPetDbContext>()
                          .Options;

            var DbContext = new FindMyPetDbContext(options);

            return(DbContext);
        }
Exemplo n.º 3
0
 public IndexModel(
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     IEmailSender emailSender,
     FindMyPetDbContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _context       = context;
 }
Exemplo n.º 4
0
 public void BeforeEachTest()
 {
     this.DbContext = MockDbContext.GetContext();
 }
Exemplo n.º 5
0
 public DeleteModel(FindMyPetDbContext context)
 {
     this.context = context;
 }
Exemplo n.º 6
0
 public AllUsersModel(FindMyPetDbContext context)
 {
     this.context = context;
 }
Exemplo n.º 7
0
 public EditModel(FindMyPetDbContext context)
 {
     this.context = context;
 }
Exemplo n.º 8
0
 public UsersController(FindMyPetDbContext context)
 {
     this.context = context;
 }
Exemplo n.º 9
0
 public CreateModel(FindMyPetDbContext context)
 {
     this.context = context;
 }
Exemplo n.º 10
0
 public void BeforeEachTest()
 {
     //we get the context from this mock class that we just created.
     this.DbContext = MockDbContext.GetContext();
 }
Exemplo n.º 11
0
 public MessagesController(FindMyPetDbContext context)
 {
     this.context = context;
 }