public void GetAdminstradoraNotFound() { var controller = new CondominioController(); IHttpActionResult actionResult = controller.GetCondominioEntity(100); Assert.IsInstanceOfType(actionResult, typeof(NotFoundResult)); }
public void GetCondominioByIdSucces() { var controller = new CondominioController(); var response = controller.GetCondominioEntity(1); var contentResult = response as OkNegotiatedContentResult <CondominioEntity>; Assert.IsNotNull(contentResult); Assert.IsNotNull(contentResult.Content); Assert.AreEqual(1, contentResult.Content.Id); }