public void AddUpdate_Adds()
        {
            Assert.IsNull(target.GetAll("TestUserName"));

            target.AddUpdate("TestUserName", new PaymentMethod());

            Assert.AreEqual(1, target.GetAll("TestUserName").Count());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Loads all the Payment Methods from the cache
 /// </summary>
 /// <returns>All the Payment Methods as they are in the cache in generic-based
 /// list
 /// </returns>
 public IEnumerable <Category> GetAll()
 {
     return(_repository.GetAll());
 }
Ejemplo n.º 3
0
 private IEnumerable <PaymentOptionInfo> GetApplicablePaymentMethods(ShoppingCartInfo cart)
 {
     return(mPaymentMethodRepository.GetAll().Where(paymentMethod => PaymentOptionInfoProvider.IsPaymentOptionApplicable(cart, paymentMethod)));
 }
Ejemplo n.º 4
0
 public List <PaymentMethod> GetPaymentMenthod()
 {
     return(_paymentRepository.GetAll().ToList <PaymentMethod>());
 }
 /// <summary>
 /// Loads all the Payment Methods from the cache
 /// </summary>
 /// <returns>All the Payment Methods as they are in the cache in generic-based
 /// list
 /// </returns>
 public IEnumerable <DataClasses.Category> GetAll()
 {
     return(_repository.GetAll());
 }