main
1namespace test
2{
3 using System.Collections.Generic;
4 using Machine.Specifications;
5 using domain;
6 using utility;
7
8 public class TypeCurveSpecs
9 {
10 Establish context = () =>
11 {
12 production = new Production(Month.Now(), 0m.BOED(), null);
13 sut = new TypeCurve(new List<Production>()
14 {
15 production
16 });
17 };
18
19 static TypeCurve sut;
20 static Production production;
21
22 public class when_poking_at_the_production_for_each_month
23 {
24 It should_allow_visitors_to_visit_each_one = () =>
25 {
26 visitor.received(x => x.Visit(production));
27 };
28 Establish context = () =>
29 {
30 visitor = Mock.An<IVisitor<Production>>();
31 };
32 Because of = () =>
33 {
34 sut.Accept(visitor);
35 };
36
37 static IVisitor<Production> visitor;
38 }
39 }
40}