Example #1
0
        public void AgregarRespuesta_SinSolicitud()
        {
            IRespuestaService respuestaService = new RespuestaService();

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

            int id = respuestaService.Registrar(new Respuesta()
            {
                Solicitud = new Solicitud()
                {
                    Id = 1
                }
            });
        }
Example #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);
        }