public void GetAllReservasSinElementoOk() { 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.ObtenerTodos()) .Returns(new List <Reserva>()); var result = controller.Get(); var okResult = result as OkObjectResult; logicMock.VerifyAll(); }