public void AddUpdate_Adds() { Assert.IsNull(target.GetAll("TestUserName")); target.AddUpdate("TestUserName", new PaymentMethod()); Assert.AreEqual(1, target.GetAll("TestUserName").Count()); }
/// <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()); }
private IEnumerable <PaymentOptionInfo> GetApplicablePaymentMethods(ShoppingCartInfo cart) { return(mPaymentMethodRepository.GetAll().Where(paymentMethod => PaymentOptionInfoProvider.IsPaymentOptionApplicable(cart, paymentMethod))); }
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()); }