Mercurial > silverbladetech
comparison 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 |
comparison
equal
deleted
inserted
replaced
42:0d4aff4f699d | 43:aef06698d9e2 |
---|---|
1 using LibrarySystem.Interfaces; | 1 using System; |
2 using LibrarySystem.Interfaces; | |
2 | 3 |
3 namespace LibrarySystem.Core | 4 namespace LibrarySystem.Core |
4 { | 5 { |
5 public class Publisher : IPublisher | 6 public class Publisher : IPublisher |
6 { | 7 { |
7 public string Name { get; set; } | 8 public string Name { get; private set; } |
9 | |
10 private Publisher() | |
11 { | |
12 | |
13 } | |
14 | |
15 public static IPublisher Create(string name) | |
16 { | |
17 if (name == null) | |
18 throw new ArgumentNullException(); | |
19 | |
20 return new Publisher() { Name = name }; | |
21 } | |
8 } | 22 } |
9 } | 23 } |