Example #1
0
 public UserService(
     BadMelonDataContext db,
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     IEmailService emailService,
     IHttpContextAccessor httpContext,
     ILogger <IUserService> logger)
 {
     _db            = db;
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailService  = emailService;
     _httpContext   = httpContext;
     _logger        = logger;
 }
Example #2
0
 public TestDataController(BadMelonDataContext db)
 {
     _db = db;
 }
Example #3
0
 public RecipeService(BadMelonDataContext db, IUserService userService) : base(db)
 {
     _LoggedInUser = userService.GetLoggedInUser();
 }
Example #4
0
 public IngredientTypeService(BadMelonDataContext db) : base(db)
 {
 }
Example #5
0
 public CrudServiceAbstract(BadMelonDataContext db)
 {
     _db = db;
 }
 public BadMelonDataContextFixture()
 {
     BadMelonDataContext = new BadMelonDataContext(new DbContextOptionsBuilder <BadMelonDataContext>()
                                                   .UseInMemoryDatabase(Guid.NewGuid().ToString())
                                                   .Options);
 }
Example #7
0
 public DatabaseController(BadMelonDataContext db, IWebHostEnvironment host, UserManager <User> userManager)
 {
     _db          = db;
     _userManager = userManager;
     _host        = host;
 }