Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
portyanikhin committed Jan 19, 2024
1 parent 0110d69 commit 9a423bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions tests/SharpProp.Tests/IO/InputExtended.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
/// <summary>
/// An example of how to extend the <see cref="Input"/> record.
/// </summary>
public record InputExtended : Input
public record InputExtended(Parameters CoolPropKey, double Value)
: Input(CoolPropKey, Value)
{
private InputExtended(Parameters coolPropKey, double value)
: base(coolPropKey, value) { }

/// <summary>
/// Molar density.
/// </summary>
Expand Down
6 changes: 2 additions & 4 deletions tests/SharpProp.Tests/IO/InputHumidAirExtended.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
/// <summary>
/// An example of how to extend the <see cref="InputHumidAir"/> record.
/// </summary>
public record InputHumidAirExtended : InputHumidAir
public record InputHumidAirExtended(string CoolPropKey, double Value)
: InputHumidAir(CoolPropKey, Value)
{
private InputHumidAirExtended(string coolPropKey, double value)
: base(coolPropKey, value) { }

/// <summary>
/// Water mole fraction.
/// </summary>
Expand Down

0 comments on commit 9a423bb

Please sign in to comment.