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); }
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); }