Exemplo n.º 1
0
        public void AgregarRespuesta_SinSolicitud()
        {
            IRespuestaService respuestaService = new RespuestaService();

            int id = respuestaService.Registrar(new Respuesta()
            {
                Usuario = "IWilson"
            });
        }
Exemplo n.º 2
0
        public void AgregarRespuesta_SinUsuario()
        {
            IRespuestaService respuestaService = new RespuestaService();

            int id = respuestaService.Registrar(new Respuesta()
            {
                Solicitud = new Solicitud()
                {
                    Id = 1
                }
            });
        }
Exemplo n.º 3
0
        public void AgregarRespuesta()
        {
            IRespuestaService respuestaService = new RespuestaService();

            int id = respuestaService.Registrar(new Respuesta()
            {
                Usuario = "IWilson", Solicitud = new Solicitud()
                {
                    Id = 1
                }
            });

            Assert.IsTrue(id > 0);
        }