コード例 #1
0
ファイル: Southeros.cs プロジェクト: ra0van/Geektrust
 public Southeros(string name)
     : base(name)
 {
     this.AddKingdom(KingdomFactory.CreateKingdom(name: "Land", emblem: "panda"));
     this.AddKingdom(KingdomFactory.CreateKingdom(name: "Water", emblem: "octopus"));
     this.AddKingdom(KingdomFactory.CreateKingdom(name: "Ice", emblem: "mammoth"));
     this.AddKingdom(KingdomFactory.CreateKingdom(name: "Air", emblem: "owl"));
     this.AddKingdom(KingdomFactory.CreateKingdom(name: "Fire", emblem: "dragon"));
     this.AddKingdom(KingdomFactory.CreateKingdom(name: "Space", emblem: "gorilla"));
 }
コード例 #2
0
 public void WillGiveSupportTests(string name, string emblem, string message, bool expectedResult)
 {
     IKingdom iceKingdom = KingdomFactory.CreateKingdom(name, emblem);
 }
コード例 #3
0
ファイル: Universe.cs プロジェクト: ra0van/Geektrust
 public Universe(string name)
 {
     this.Name     = name;
     this.kingdoms = new HashSet <IKingdom>();
     this.ruler    = KingdomFactory.CreateKingdom(null, null);
 }