public void TestCupWithThee() { var c = new Cup<Thee>(); c.Beverage = new Thee { Sugar = false, Flavour = Flavour.EarlGrey }; }
public CupSeason Build() { if (cup == null) { cup = A.Cup.WithSampleStages().Build(); } if (!teams.Any()) { teams.AddRange(Enumerable.Repeat(0, cup.StagesOrdered.First().TeamCount).Select(x => A.Team.InWorld(cup.World).Build())); } return new CupSeason(cup, new DateTime(2012, 08, 01), new DateTime(2013, 05, 31), teams); }
public static void Main() { int N = int.Parse(System.Console.ReadLine()); var cup = new Cup(); for (int i=0; i<N; i++) { var line = System.Console.ReadLine().Split(' '); int operation = int.Parse(line[0]); int gram = int.Parse(line[1]); switch(operation) { case 1: cup.addWater(gram); break; case 2: cup.addCafee(gram); break; default: cup.tasting(gram); break; } } System.Console.WriteLine((int)(100*cup.concentration())); }
public void TestMethod1() { var c = new Cup<int>(); c.Beverage = 3; }
public CupSeasonBuilder ForCup(Cup cup) { this.cup = cup; return this; }