public void Select_ValidId_ReturnsPdv()
        {
            const int id = 1;

            var response = _repository.Select(id);

            Assert.IsNotNull(response);
            Assert.AreSame(typeof(Pdv), response.GetType());
            Assert.AreEqual(id, response.Id);
        }
Beispiel #2
0
        public PdvResponse Get(int id)
        {
            Pdv pdv = _repository.Select(id);

            if (pdv == null)
            {
                return(null);
            }

            return(new PdvResponse(pdv));
        }