Example #1
0
        public void GetEstadoOk()
        {
            var logicMock                 = new Mock <IReserva>(MockBehavior.Strict);
            var logicMockHospedaje        = new Mock <IHospedaje>(MockBehavior.Strict);
            ReservasController controller = new ReservasController(logicMock.Object, logicMockHospedaje.Object);

            logicMock.Setup(x => x.ConsultarEstado(It.IsAny <int>())).Returns("Creada  Test");

            var result   = controller.GetEstado(It.IsAny <int>());
            var okResult = result as OkObjectResult;

            logicMock.VerifyAll();
        }