public void BookAppointCorrect() { var resultrepo = new AppointmentRepository(mockContext.Object); var details = new TestAppointment { Firstname = "Sujana", Lastname = "Maruvada", PaymentType = "Card" }; var res = resultrepo.BookAppointment(details); Assert.AreEqual(1, res); }