Skip to content

Commit 61df6b1

Browse files
committed
Fix incorrect naming
1 parent 85658dc commit 61df6b1

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed
Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
1-
namespace MatthiWare.FinancialModelingPrep.Model.CompanyValuation
1+
using System.Text.Json.Serialization;
2+
3+
namespace MatthiWare.FinancialModelingPrep.Model.CompanyValuation
24
{
35
public class EnterpriseValueResponse
46
{
5-
public string symbol { get; set; }
6-
public string date { get; set; }
7-
public double stockPrice { get; set; }
8-
public long numberOfShares { get; set; }
9-
public double marketCapitalization { get; set; }
10-
public long minusCashAndCashEquivalents { get; set; }
11-
public long addTotalDebt { get; set; }
12-
public double enterpriseValue { get; set; }
7+
[JsonPropertyName("symbol")]
8+
public string Symbol { get; set; }
9+
10+
[JsonPropertyName("date")]
11+
public string Date { get; set; }
12+
13+
[JsonPropertyName("stockPrice")]
14+
public double StockPrice { get; set; }
15+
16+
[JsonPropertyName("numberOfShares")]
17+
public long NumberOfShares { get; set; }
18+
19+
[JsonPropertyName("marketCapitalization")]
20+
public double MarketCapitalization { get; set; }
21+
22+
[JsonPropertyName("minusCashAndCashEquivalents")]
23+
public long MinusCashAndCashEquivalents { get; set; }
24+
25+
[JsonPropertyName("addTotalDebt")]
26+
public long AddTotalDebt { get; set; }
27+
28+
[JsonPropertyName("enterpriseValue")]
29+
public double EnterpriseValue { get; set; }
1330
}
1431
}

Tests/CompanyValuation/CompanyValuationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public async Task GetEnterpriseValue()
119119
result.AssertNoErrors();
120120
Assert.NotEmpty(result.Data);
121121
Assert.Equal(5, result.Data.Count);
122-
Assert.All(result.Data, data => Assert.Equal("AAPL", data.symbol));
122+
Assert.All(result.Data, data => Assert.Equal("AAPL", data.Symbol));
123123
}
124124

125125
[Theory]

0 commit comments

Comments
 (0)