Exemplo n.º 1
0
        public void TestGetRecord()
        {
            ConfigUrlService urlService = new ConfigUrlService();

            urlService.Url = "http://herc-as-front-desa.atica.um.es/carga/";
            CallApiNeedInfoPublisData api        = new CallApiNeedInfoPublisData(urlService);
            OaiPublishRDFService      oaiPublish = new OaiPublishRDFService(null, api);
            string rdf = oaiPublish.CallGetRecord(new Guid("5efac0ad-ec4e-467d-bbf5-ce3f64edb46a"), "1");

            Assert.True(!string.IsNullOrEmpty(rdf));
        }
Exemplo n.º 2
0
        public void TestListIdentifier()
        {
            ConfigUrlService urlService = new ConfigUrlService();

            urlService.Url = "http://herc-as-front-desa.atica.um.es/carga/";
            CallApiNeedInfoPublisData api        = new CallApiNeedInfoPublisData(urlService);
            OaiPublishRDFService      oaiPublish = new OaiPublishRDFService(null, api);
            var lista = oaiPublish.CallListIdentifier(new Guid("5efac0ad-ec4e-467d-bbf5-ce3f64edb46a"));

            Assert.True(lista.Count > 0);
        }