Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Blog/Impl/BlogPublicadorConfig.cs @ 105:1d820f17fc75
ajustes y correcciones en el publicador de blogs
agregado de numeroOrden y urlWiki en metodo Publicar de Agenda y Evento (con test)
author | jorge.rowies |
---|---|
date | Mon, 06 Jun 2011 09:12:52 -0300 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Agendas/trunk/src/Agendas.Blog/Impl/BlogPublicadorConfig.cs Mon Jun 06 09:12:52 2011 -0300 @@ -0,0 +1,37 @@ +using System; + +namespace Agendas.Blog.Impl +{ + public class BlogPublicadorConfig + { + public BlogPublicadorConfig(string postWriterServiceUrl, string blogName, string blogWriterMasterKey) + { + if (string.IsNullOrEmpty(postWriterServiceUrl)) throw new ArgumentNullException("postWriterServiceUrl"); + if (string.IsNullOrEmpty(blogName)) throw new ArgumentNullException("blogName"); + if (string.IsNullOrEmpty(blogWriterMasterKey)) throw new ArgumentNullException("blogWriterMasterKey"); + + _postWriterServiceUrl = postWriterServiceUrl; + _blogName = blogName; + _blogWriterMasterKey = blogWriterMasterKey; + } + + private readonly string _postWriterServiceUrl; + private readonly string _blogName; + private readonly string _blogWriterMasterKey; + + public string BlogWriterMasterKey + { + get { return _blogWriterMasterKey; } + } + + public string BlogName + { + get { return _blogName; } + } + + public string PostWriterServiceUrl + { + get { return _postWriterServiceUrl; } + } + } +}