public void Update() { PaymentDtl user1 = new PaymentDtl() { remarks = "", amount = 6000, mentorId = 46, mentorName = "Cornel", trainingId = 9, skillName = "Artifical Intellegience", totalAmountToMentor = 5700, commision = 400 }; user.UpdatePayment(2, user1); PaymentDtl user2 = user.GetPaymentDetails(2); Assert.IsTrue(user1.amount == user2.amount && user1.mentorName == user2.mentorName); }
public void Update() { UL user = new UL(); PaymentDtl user1 = new PaymentDtl() { remarks = "", amount = 500, mentorId = 3, mentorName = "arvind", trainingId = 1, skillName = "Java", totalAmountToMentor = 400, commision = 100 // }; user.UpdatePayment(4, user1); PaymentDtl user2 = user.GetPaymentDetails(4); Assert.IsTrue(user1.amount == user2.amount && user1.mentorName == user2.mentorName); }