public void TestGetProductAt()
        {
            List <Product> products = CreateUniqueProductIdQualifiedProducts();

            _target.SetFieldOrProperty(MEMBER_VARIABLE_NAME_PRODUCTS, products);
            Assert.ThrowsException <ArgumentOutOfRangeException>(() => _productsManager.GetProductAt(-1));
            Assert.ThrowsException <ArgumentOutOfRangeException>(() => _productsManager.GetProductAt(3));
            Assert.AreSame(_productsManager.GetProductAt(0), products[0]);
            Assert.AreSame(_productsManager.GetProductAt(1), products[1]);
        }
 /// <summary>
 /// Gets the product at.
 /// </summary>
 public Product GetProductAt(int productIndex)
 {
     return(_productsManager.GetProductAt(productIndex));
 }
 public void TestGetProductAt()
 {
     Assert.AreSame(_model.GetProductAt(0), _productsManager.GetProductAt(0));
     Assert.AreSame(_model.GetProductAt(1), _productsManager.GetProductAt(1));
 }