You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
961 B

  1. using Microsoft.AspNetCore.Mvc;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.eShopOnContainers.Services.Catalog.API.Controllers;
  4. using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure;
  5. using Microsoft.eShopOnContainers.Services.Catalog.API.Model;
  6. using Moq;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Threading;
  11. using System.Threading.Tasks;
  12. using Xunit;
  13. namespace UnitTest.Catalog
  14. {
  15. public class CatalogControllerTest
  16. {
  17. private readonly Mock<CatalogContext> _mockContext;
  18. private readonly Mock<IQueryable<CatalogItem>> _mockItems;
  19. public CatalogControllerTest()
  20. {
  21. _mockContext = new Mock<CatalogContext>();
  22. _mockItems = new Mock<IQueryable<CatalogItem>>();
  23. }
  24. [Fact]
  25. public async Task Items_ReturnsOKObject_WhenItemsFound()
  26. {
  27. //CCE: TODO
  28. Assert.True(true);
  29. }
  30. }
  31. }