Ejemplo n.º 1
0
        public void GetAdminstradoraNotFound()
        {
            var controller = new CondominioController();

            IHttpActionResult actionResult = controller.GetCondominioEntity(100);

            Assert.IsInstanceOfType(actionResult, typeof(NotFoundResult));
        }
Ejemplo n.º 2
0
        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);
        }