DiscountService class will handle all service type requests
상속: IDiscountService
예제 #1
0
 public static IDiscountService GetInstance()
 {
     if (discountService == null)
     {
         discountService = new DiscountService();
     }
     return discountService;
 }
예제 #2
0
 public void Setup()
 {
     couponList = new List<UserDiscount>();
     discountService = (DiscountService)DiscountService.GetInstance();
     userDiscount = User_DiscountTest.CreateCoupon();
     couponList.Add(coupon);
     isSuccess = false;
     error = null;
     discountService.couponUtility = mockUserDiscountUtility.Object;
     discountService.dbContext = mockContext.Object;
 }