public async Task TestGetSpecifiedVatRate() { var sizeRepository = new VatRateRepository(mockContext.Object); var foundSize = await sizeRepository.GetById(searchedVatRate.Id); Assert.AreEqual(searchedVatRate, foundSize); }
public async Task TestGetVatRates() { var sizeRepository = new VatRateRepository(mockContext.Object); var sizeCount = await sizeRepository.GetAll(); Assert.AreEqual(4, sizeCount.Count()); }
public UnitOfWork(IDataContext context) { _context = context; OrderRepository = new OrderRepository(_context); ProductRepository = new ProductRepository(_context); SizeRepository = new SizeRepository(_context); VatRateRepository = new VatRateRepository(_context); OrderProductLinkRepository = new OrderProductLinkRepository(_context); CategoryRepository = new CategoryRepository(_context); }