Ejemplo n.º 1
0
 public void ProcessManagerProductSearchColours()
 {
     DTOContext _DTOC = new DTOContext();
     ProcessManager _ProcessManager = new ProcessManager(_DTOC);
     ProductSearchParameters _ProductSearchParameters = new ProductSearchParameters { ColourIds = new List<int>(new int[] { 1, 2, 3 }) };
     List<Product> products = _ProcessManager.ProductSearch(_ProductSearchParameters);
     Assert.IsTrue(products.Count() < _DTOC.Products.Count());
 }
Ejemplo n.º 2
0
 public void ProcessManagerProductSearchAll()
 {
     DTOContext _DTOC = new DTOContext();
     ProcessManager _ProcessManager = new ProcessManager(_DTOC);
     ProductSearchParameters _ProductSearchParameters = new ProductSearchParameters();
     List<Product> products = _ProcessManager.ProductSearch(_ProductSearchParameters);
     Assert.AreEqual(products.Count(), _DTOC.Products.Count());
 }
Ejemplo n.º 3
0
 public void ProcessManagerStringSearch()
 {
     DTOContext _DTOC = new DTOContext();
     ProcessManager _ProcessManager = new ProcessManager(_DTOC);
     ProductSearchParameters _ProductSearchParameters = new ProductSearchParameters { SearchString = "Tee Nike" };
     List<Product> products = _ProcessManager.ProductSearch (_ProductSearchParameters);
     Assert.IsTrue(products.Count() < _DTOC.Products.Count());
 }