public async Task DeleteProfessor_BadRequest() { var response = await ProfessorController.Delete(null); var code = (StatusCodeResult)response.Result; Assert.AreEqual((int)HttpStatusCode.BadRequest, code.StatusCode); }
public async Task DeleteProfessor_ValidCall() { var response = await ProfessorController.Delete(1); var code = ((ObjectResult)response.Result).StatusCode; Assert.AreEqual((int)HttpStatusCode.OK, code); }