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