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

            var DbContext = new FindMyPetDbContext(options);

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