view Agendas/trunk/src/Agendas.Tests/Blog/PostWriterWebServiceAdapterTests.cs @ 109:6bd9be78caa0

Merge
author Nelo@Kenia.neluz.int
date Tue, 07 Jun 2011 23:21:07 -0300
parents 1d820f17fc75
children 734d3f0853bf
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.ServiceModel;
using System.Text;
using Agendas.Blog;
using Agendas.Blog.Exceptions;
using Agendas.Blog.Impl;
using AltNetHispano.Agendas.Domain;
using Moq;
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);
    }
  }

}