view Agendas/trunk/src/Agendas.Tests/Blog/PostWriterWebServiceAdapterTests.cs @ 126:6012f2becf97

Se agrega instalación de nuget package para el calendario de google.
author alabra
date Tue, 28 Jun 2011 23:35:22 -0400
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);
    }
  }

}