public void AddPatient_InvalidData_BadRequest_Test() { //Arrage IDbContext dbContext = new MedicalAppointmentContext(); IRepository repository = new PatientRepository(dbContext); var sut = new PatientsController(repository); var patientToAdd = new Patient(); //Act var result = sut.Add(patientToAdd); //Assert Assert.IsTrue(result is BadRequestErrorMessageResult); }