blob: 1d843991497df24d789aaf0dd035e7a7ff1349a0 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
namespace test
{
using System;
using System.Collections.Generic;
using System.Linq;
using Machine.Specifications;
using domain;
public class WellSpecs
{
public class when_estimating_production
{
Establish context = () =>
{
sut = new DrillSchedule();
};
static DrillSchedule sut;
public class when_100_percent_working_interest
{
Establish context = ()=>
{
parkland100Percent = new Oppurtunity();
parkland100Percent.WorkingInterest(100m.Percent());
var declineCurve = new DeclineCurve();
declineCurve.Composition<Gas>(100m.Percent());
declineCurve.Add(0, 100.BOED());
parkland100Percent.DeclinesUsing(declineCurve);
jan2013 = new Month(2013, 01);
};
Because of = ()=>
{
sut.Include(parkland100Percent.BringOnlineOn(jan2013));
};
It should_be_able_to_tell_the_estimated_total_production_for_any_month= () =>
{
sut.EstimatedGrossProductionFor<All>(jan2013).ShouldEqual(100.BOED());
};
It should_be_able_to_tell_the_estimated_production_for_gas=()=>
{
sut.EstimatedGrossProductionFor<Gas>(jan2013).ShouldEqual(100.BOED());
};
It should_be_able_to_tell_the_estimated_production_for_oil=()=>
{
sut.EstimatedGrossProductionFor<Oil>(jan2013).ShouldEqual(0.BOED());
};
It should_be_able_to_tell_the_estimated_production_for_ngl=()=>
{
sut.EstimatedGrossProductionFor<NGL>(jan2013).ShouldEqual(0.BOED());
};
It should_be_able_to_tell_the_estimated_production_for_condensate=()=>
{
sut.EstimatedGrossProductionFor<Condensate>(jan2013).ShouldEqual(0.BOED());
};
static Oppurtunity parkland100Percent;
static Month jan2013;
}
public class when_reduced_working_interest
{
It should_be_able_to_tell_the_estimated_net_total_production_for_any_month = () =>
{
var parkland75Percent = new Oppurtunity();
parkland75Percent.WorkingInterest(75m.Percent());
var declineCurve = new DeclineCurve();
declineCurve.Composition<Gas>(50m.Percent());
declineCurve.Composition<Oil>(50m.Percent());
declineCurve.Add(0, 100.BOED());
parkland75Percent.DeclinesUsing(declineCurve);
var schedule = new DrillSchedule();
var jan2013 = new Month(2013, 01);
schedule.Include(parkland75Percent.BringOnlineOn(jan2013));
schedule.EstimatedNetProductionFor<All>(jan2013).ShouldEqual(75.BOED());
schedule.EstimatedNetProductionFor<Gas>(jan2013).ShouldEqual(37.5m.BOED());
schedule.EstimatedNetProductionFor<Oil>(jan2013).ShouldEqual(37.5m.BOED());
};
}
}
}
}
|