-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moves some classes and methods into better namespaces
- Loading branch information
1 parent
0385a72
commit 4b01297
Showing
6 changed files
with
51 additions
and
30 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
EtiveMor.OpenImoCiiCalculator/EtiveMor.OpenImoCiiCalculator.Core.Tests/CalculatorTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...r.OpenImoCiiCalculator/EtiveMor.OpenImoCiiCalculator.Core/Models/Dto/AnnaulConsumption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace EtiveMor.OpenImoCiiCalculator.Core.Models.Dto | ||
{ | ||
/// <summary> | ||
/// A request object to hold metadata about the annual consumption of a ship | ||
/// </summary> | ||
public class AnnaulConsumption | ||
{ | ||
/// <summary> | ||
/// The year this consumption measures | ||
/// </summary> | ||
public int TargetYear { get; set; } | ||
|
||
/// <summary> | ||
/// The total fuel consumption in the given year | ||
/// </summary> | ||
public IEnumerable<FuelTypeConsumption> FuelConsumption { get; set; } | ||
Check warning on line 16 in EtiveMor.OpenImoCiiCalculator/EtiveMor.OpenImoCiiCalculator.Core/Models/Dto/AnnaulConsumption.cs GitHub Actions / build
Check warning on line 16 in EtiveMor.OpenImoCiiCalculator/EtiveMor.OpenImoCiiCalculator.Core/Models/Dto/AnnaulConsumption.cs GitHub Actions / build
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...OpenImoCiiCalculator/EtiveMor.OpenImoCiiCalculator.Core/Models/Dto/FuelTypeConsumption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using EtiveMor.OpenImoCiiCalculator.Core.Models.Enums; | ||
|
||
namespace EtiveMor.OpenImoCiiCalculator.Core.Models.Dto | ||
{ | ||
/// <summary> | ||
/// A request object to hold metadata about the fuel consumption of a ship | ||
/// </summary> | ||
public class FuelTypeConsumption | ||
{ | ||
/// <summary> | ||
/// The type of fuel consumed by the ship | ||
/// </summary> | ||
public TypeOfFuel FuelType { get; set; } | ||
|
||
/// <summary> | ||
/// The amount of fuel consumed by the ship in the given year (in grams) | ||
/// </summary> | ||
public double FuelConsumption { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
EtiveMor.OpenImoCiiCalculator/EtiveMor.OpenImoCiiCalculator.DemoConsoleApp/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters