Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Tests/Blog/PostWriterWebServiceAdapterTests.cs @ 158:734d3f0853bf
Manejando configuración de los publicadores con una sección propia en los .config
Agregando la opción de habilitar / deshabilitar un publicador
author | nelopauselli |
---|---|
date | Fri, 05 Aug 2011 16:55:18 -0300 |
parents | 1d820f17fc75 |
children | 03cf6a377ee8 |
line wrap: on
line source
using System.ServiceModel; using Agendas.Blog.Impl; using NUnit.Framework; namespace AltNetHispano.Agendas.Tests.Blog { [TestFixture] public class PostWriterWebServiceAdapterTests { [Test] [ExpectedException(typeof(EndpointNotFoundException))] public void Si_la_url_es_invalida_debe_lanzar_excepcion() { var srv = new PostWriterWebServiceAdapter(new BlogPublicadorConfig("http://dummy/dummy.aspx", "dummy", "dummy")); srv.WriteBlogPost(null, null, null, false); } } }