Mercurial > silverbladetech
diff Library/LibrarySystem/Core/Publisher.cs @ 43:aef06698d9e2 Test
Added the library tests
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Wed, 04 Apr 2012 19:20:20 +0100 |
parents | dbd242eb9c33 |
children |
line wrap: on
line diff
--- a/Library/LibrarySystem/Core/Publisher.cs Tue Apr 03 23:32:40 2012 +0100 +++ b/Library/LibrarySystem/Core/Publisher.cs Wed Apr 04 19:20:20 2012 +0100 @@ -1,9 +1,23 @@ -using LibrarySystem.Interfaces; +using System; +using LibrarySystem.Interfaces; namespace LibrarySystem.Core { public class Publisher : IPublisher { - public string Name { get; set; } + public string Name { get; private set; } + + private Publisher() + { + + } + + public static IPublisher Create(string name) + { + if (name == null) + throw new ArgumentNullException(); + + return new Publisher() { Name = name }; + } } }