Ejemplo n.º 1
0
        public void CheckPacientRequestIsNull()
        {
            _processor = new PacientRequestProcessor();
            ArgumentNullException exception = Assert.Throws <ArgumentNullException>(() => _processor.PtApoinment());

            Assert.Equal("request", exception.ParamName);
        }
Ejemplo n.º 2
0
        public void ShouldReturnPacientRequestValues()
        {
            _request = new PacientRequest
            {
                PacientoId = 1,
                Name       = "Denis",
                LastName   = "Zamaro"
            };

            _processor = new PacientRequestProcessor();

            PacientResult result = _processor.PtApoinment();

            Assert.NotNull(result);
            Assert.Equal(_request.PacientoId, result.PacientoId);
            Assert.Equal(_request.Name, result.Name);
            Assert.Equal(_request.LastName, result.LastName);
        }