view Agendas/trunk/src/Agendas.Tests/Blog/PostWriterWebServiceAdapterTests.cs @ 112:0bca45e1e664

Pantalla de Perfil donde se puede asociar la cuenta de twitter al usuario existente
author Nelo@Kenia.neluz.int
date Sat, 11 Jun 2011 01:20:59 -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);
    }
  }

}