diff options
| author | mo k <mo@mokhan.ca> | 2012-04-17 09:48:12 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-04-17 09:48:12 -0600 |
| commit | 698bee18630ed5385b9225e67ef525656e85b928 (patch) | |
| tree | c9a630c35a24b48ac79a597e5cd832f5a7fa713e | |
| parent | 1bfbfe5c631b5adcf6bd7e2786f583ad97ee07e2 (diff) | |
rename DrillSchedule to ProductionSchedule.
| -rw-r--r-- | src/domain/DrillSchedule.cs | 23 | ||||
| -rw-r--r-- | src/domain/EstimatedNetProductionFor.cs | 26 | ||||
| -rwxr-xr-x | src/domain/domain.csproj | 1 | ||||
| -rw-r--r-- | src/test/ProductionScheduleSpecs.cs (renamed from src/test/WellSpecs.cs) | 6 | ||||
| -rwxr-xr-x | src/test/test.csproj | 2 |
5 files changed, 32 insertions, 26 deletions
diff --git a/src/domain/DrillSchedule.cs b/src/domain/DrillSchedule.cs index 89cd06f..a59dff0 100644 --- a/src/domain/DrillSchedule.cs +++ b/src/domain/DrillSchedule.cs @@ -5,7 +5,7 @@ namespace domain using System.Linq; using utility; - public class DrillSchedule : IVisitable<IWell> + public class ProductionSchedule : IVisitable<IWell> { ICollection<IWell> wells = new List<IWell>(); @@ -47,25 +47,4 @@ namespace domain }); } } - public class EstimatedNetProductionFor<T> : IValueReturningVisitor<IWell, IQuantity> where T : ICommodity, new() - { - Month month; - IQuantity result; - - public EstimatedNetProductionFor(Month month) - { - this.month = month; - result = new Quantity(0, new BOED()); - } - - public void Visit(IWell well) - { - result = result.Plus(well.NetProductionFor<T>(month)); - } - - public IQuantity Result() - { - return this.result; - } - } } diff --git a/src/domain/EstimatedNetProductionFor.cs b/src/domain/EstimatedNetProductionFor.cs new file mode 100644 index 0000000..31b2bd0 --- /dev/null +++ b/src/domain/EstimatedNetProductionFor.cs @@ -0,0 +1,26 @@ +namespace domain +{ + using utility; + + public class EstimatedNetProductionFor<T> : IValueReturningVisitor<IWell, IQuantity> where T : ICommodity, new() + { + Month month; + IQuantity result; + + public EstimatedNetProductionFor(Month month) + { + this.month = month; + result = new Quantity(0, new BOED()); + } + + public void Visit(IWell well) + { + result = result.Plus(well.NetProductionFor<T>(month)); + } + + public IQuantity Result() + { + return this.result; + } + } +} diff --git a/src/domain/domain.csproj b/src/domain/domain.csproj index 7b05932..8a6086b 100755 --- a/src/domain/domain.csproj +++ b/src/domain/domain.csproj @@ -46,6 +46,7 @@ <Compile Include="CommoditySplits.cs" />
<Compile Include="DeclineCurve.cs" />
<Compile Include="DrillSchedule.cs" />
+ <Compile Include="EstimatedNetProductionFor.cs" />
<Compile Include="Month.cs" />
<Compile Include="Oppurtunity.cs" />
<Compile Include="Percent.cs" />
diff --git a/src/test/WellSpecs.cs b/src/test/ProductionScheduleSpecs.cs index 6c00623..b37829f 100644 --- a/src/test/WellSpecs.cs +++ b/src/test/ProductionScheduleSpecs.cs @@ -7,16 +7,16 @@ using domain;
using utility;
- public class WellSpecs
+ public class ProductionScheduleSpecs
{
public class when_estimating_production
{
Establish context = () =>
{
- sut = new DrillSchedule();
+ sut = new ProductionSchedule();
};
- static DrillSchedule sut;
+ static ProductionSchedule sut;
public class when_100_percent_working_interest
{
diff --git a/src/test/test.csproj b/src/test/test.csproj index ec69f26..4bc3ace 100755 --- a/src/test/test.csproj +++ b/src/test/test.csproj @@ -46,7 +46,7 @@ <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="GreetingSpecs.cs" />
<Compile Include="CalculatorSpecs.cs" />
- <Compile Include="WellSpecs.cs" />
+ <Compile Include="ProductionScheduleSpecs.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
|
