Example #1
0
        public CatagoriesHelperTest()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>()
                          .UseInMemoryDatabase(databaseName: "TestDb")
                          .Options;

            _context          = new ApplicationDbContext(options);
            _catagoriesHelper = new CatagoriesHelper(_context);
        }
Example #2
0
 public ProductRepositories(ICatagoriesHelper helper)
 {
     _helper = helper ?? throw new ArgumentNullException(nameof(_helper));
 }