public BankCoupon RequestCoupon(int UserId) { //write a code to RequestCoupon BankCoupon BankCoupon = new BankCoupon(); return(BankCoupon); }
public void TestFor_Valid_RequestCoupon() { BankCoupon bankcoupon = new BankCoupon() { CouponId = 1 }; //Arrange //Action var bankCoupon = _UserService.RequestCoupon(user.Id); var getbBankCoupon = _UserService.GetBankCouponById(bankcoupon.CouponId); //Assert Assert.Equal(getbBankCoupon, bankCoupon); }
public void TestFor_Valid_AddCoupon() { //Arrange BankCoupon bankCoupon = new BankCoupon() { CouponId = 1, UserID = 1, CouponImage = "ss", CouponNumber = "1", Couponvalue = 1, Created_at = DateTime.Now }; //Action var IsAdded = _UserService.AddCoupon(bankCoupon); //Assert Assert.True(IsAdded); }
public bool AddCoupon(BankCoupon bankcoupon) { //write a code to addcoupon return(true); }
public BankCoupon GetBankCouponById(int BankCoponId) { BankCoupon BankCoupon = new BankCoupon(); return(BankCoupon); }
public BankCoupon RequestCoupon(int UserId) { BankCoupon BankCoupon = new BankCoupon(); return(BankCoupon); }
public bool AddCoupon(BankCoupon bankcoupon) { return(true); }