Exemplo n.º 1
0
        public void Search_ValidLocation_ReturnsPdvResponse()
        {
            var pdv      = this.RandomExistingPdv;
            var expected = new PdvResponse(pdv);

            var response = _service.Search(pdv.Address.Coordinates[0].X, pdv.Address.Coordinates[0].Y);

            Assert.IsNotNull(response);
            Assert.AreSame(typeof(PdvResponse), response.GetType());
            Assert.AreEqual(expected.Id, response.Id);
        }
Exemplo n.º 2
0
        public void Get_PdvExists_ReturnsPdvResponse()
        {
            var pdv      = this.RandomExistingPdv;
            var expected = new PdvResponse(pdv);

            var response = _service.Get(pdv.Id);

            Assert.IsNotNull(response);
            Assert.AreSame(typeof(PdvResponse), response.GetType());
            Assert.AreEqual(expected.Id, response.Id);
        }