comparison Library/LibrarySystem/Core/Person.cs @ 45:274fd2386d55

Merge with Test
author Steven Hollidge <stevenhollidge@hotmail.com>
date Wed, 04 Apr 2012 19:41:51 +0100
parents aef06698d9e2
children
comparison
equal deleted inserted replaced
42:0d4aff4f699d 45:274fd2386d55
1 using System;
2 using LibrarySystem.Interfaces;
3
4 namespace LibrarySystem.Core
5 {
6 public class Person : IPerson
7 {
8 public string Address { get; private set; }
9 public string Name { get; private set; }
10
11 private Person()
12 {
13
14 }
15
16 public static IPerson Create(string address, string name)
17 {
18 if (address == null || name == null)
19 throw new ArgumentNullException();
20
21 return new Person() { Address = address, Name = name};
22 }
23 }
24 }