Example #1
0
        public PacientResult PtApoinment(PacientRequest request)
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            return(new PacientResult
            {
                PacientoId = request.PacientoId,
                Name = request.Name,
                LastName = request.LastName
            });
        }
Example #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);
        }