public UserService(EBuyDbContext context, UserManager <User> userManager, IMapper mapper) { this.context = context; this.userManager = userManager; this.mapper = mapper; }
public CommentService(EBuyDbContext context, IUserService userService, IMapper mapper) { this.context = context; this.userService = userService; this.mapper = mapper; }
public CategoryService(EBuyDbContext context, ICloudinaryService cloudinaryService, IMapper mapper) { this.context = context; this.cloudinaryService = cloudinaryService; this.mapper = mapper; }
public static EBuyDbContext GetContext() { var dbOptions = new DbContextOptionsBuilder <EBuyDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; var context = new EBuyDbContext(dbOptions); return(context); }
public OrderService(EBuyDbContext context, IMapper mapper, IUserService userService, IProductService productService) { this.context = context; this.mapper = mapper; this.userService = userService; this.productService = productService; }
public MessageService(EBuyDbContext context, IMapper mapper, IUserService userService, IEmailSender emailSender) { this.context = context; this.mapper = mapper; this.userService = userService; this.emailSender = emailSender; }
public RegisterModel( UserManager <User> userManager, ILogger <RegisterModel> logger, IEmailSender emailSender, EBuyDbContext context) { _userManager = userManager; _logger = logger; _emailSender = emailSender; this.context = context; }
public ProductService(EBuyDbContext context, ICloudinaryService cloudinaryService, IMapper mapper, ICategoryService categoryService, IUserService userService) { this.context = context; this.cloudinaryService = cloudinaryService; this.mapper = mapper; this.categoryService = categoryService; this.userService = userService; }
public PurchaseService(EBuyDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public MessageServiceTests() { this.context = TestStartup.GetContext(); }
public PurchaseServiceTests() { this.context = TestStartup.GetContext(); }
public UserServiceTests() { this.context = TestStartup.GetContext(); }
public CategoryServiceTests() { this.context = TestStartup.GetContext(); }
public CommentServiceTests() { this.context = TestStartup.GetContext(); }
public ProductServiceTests() { this.context = TestStartup.GetContext(); }