public CatagoriesHelperTest() { var options = new DbContextOptionsBuilder <ApplicationDbContext>() .UseInMemoryDatabase(databaseName: "TestDb") .Options; _context = new ApplicationDbContext(options); _catagoriesHelper = new CatagoriesHelper(_context); }
public ProductRepositories(ICatagoriesHelper helper) { _helper = helper ?? throw new ArgumentNullException(nameof(_helper)); }