comparison API/Objects/Mock/MockCategory.cs @ 102:a3bc8174299f

Re #27: Define unit requirements * First test for first new style requirement * Update some of the Mock objects to add a few more required elements (mainly Category)
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Mar 2011 17:04:09 +0000
parents 19fc7a733064
children
comparison
equal deleted inserted replaced
101:08fd75eafb67 102:a3bc8174299f
6 6
7 namespace IBBoard.WarFoundry.API.Objects.Mock 7 namespace IBBoard.WarFoundry.API.Objects.Mock
8 { 8 {
9 public class MockCategory : Category 9 public class MockCategory : Category
10 { 10 {
11 public MockCategory () : base("mockcat", "Mock Category") 11 private static MockCategory cat;
12
13 public static MockCategory GetCategory()
14 {
15 if (cat == null)
16 {
17 cat = new MockCategory();
18 }
19
20 return cat;
21 }
22
23 private MockCategory () : base("mockcat", "Mock Category")
12 { 24 {
13 } 25 }
14 } 26 }
15 } 27 }