Commit 698bee1
Changed files (5)
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" />
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;
- }
- }
}
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;
+ }
+ }
+}
src/test/WellSpecs.cs → 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
{
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" />