main
 1namespace test
 2{
 3  using domain;
 4  using Machine.Specifications;
 5
 6  public class CapacitySpecs
 7  {
 8    Establish context = () =>
 9    {
10      sut = new Capacity(0m.MCF());
11    };
12
13    static Capacity sut;
14
15    public class when_checking_what_the_available_capacity_is_for_a_given_month
16    {
17      It should_return_the_correct_capacity=()=>
18      {
19        result.ShouldEqual(120m.MCF());
20      };
21
22      Because of = () =>
23      {
24        sut.IncreaseCapacity(60m.MCF(), Month.Now());
25        sut.IncreaseCapacity(60m.MCF(), Month.Now().Next());
26        result = sut.AvailableFor(Month.Now().Next());
27      };
28
29      static IQuantity result;
30    }
31  }
32}