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

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

            Assert.AreEqual(1, target.GetAll("TestUserName").Count());
        }
예제 #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());
 }
예제 #3
0
 private IEnumerable <PaymentOptionInfo> GetApplicablePaymentMethods(ShoppingCartInfo cart)
 {
     return(mPaymentMethodRepository.GetAll().Where(paymentMethod => PaymentOptionInfoProvider.IsPaymentOptionApplicable(cart, paymentMethod)));
 }
예제 #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());
 }