comparison Library/LibrarySystem/Core/Person.cs @ 43:aef06698d9e2 Test

Added the library tests
author Steven Hollidge <stevenhollidge@hotmail.com>
date Wed, 04 Apr 2012 19:20:20 +0100
parents
children
comparison
equal deleted inserted replaced
42:0d4aff4f699d 43:aef06698d9e2
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 }