using Tutorial2.Domain;
using Tutorial2.Service;
namespace Tutorial2.Test
{
public class BlogServiceMock : IBlogService
{
#region IBlogService Members
///
/// Check for Author.
///
/// The login.
/// The password.
///
public Author Verify(string login, string password)
{
Author author = new Author("Gilles");
author.Login = "ibatis";
author.Password = "rock";
Blog blog = new Blog();
blog.Name = "iBATIS Blog";
Post post = new Post();
post.Title = "iBATSI Drives MySpace :-)";
post.Content = "...";
blog.Posts.Add(post);
author.Blog = blog;
return author;
}
///
/// Saves the blog.
///
/// The blog.
public void SaveBlog(Blog blog)
{
}
///
/// Saves the post.
///
/// The post.
public void SavePost(Post post)
{
}
#endregion
}
}