File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 5
5
<RootNamespace >MatthiWare.FinancialModelingPrep</RootNamespace >
6
6
<PackageRequireLicenseAcceptance >true</PackageRequireLicenseAcceptance >
7
7
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
8
- <AssemblyVersion >0.1.11 .0</AssemblyVersion >
9
- <FileVersion >0.1.11 .0</FileVersion >
8
+ <AssemblyVersion >0.1.12 .0</AssemblyVersion >
9
+ <FileVersion >0.1.12 .0</FileVersion >
10
10
<Company >MatthiWare</Company >
11
11
<PackageId >MatthiWare.FinancialModelingPrep</PackageId >
12
- <Version >0.1.11 </Version >
12
+ <Version >0.1.12 </Version >
13
13
<Description >FinancialModelingPrep API Client written in .NET 5</Description >
14
14
<Copyright >Copyright Matthias Beerens 2021</Copyright >
15
15
<Product >FinancialModelingPrep API Client</Product >
20
20
<PackageTags >FinancialModelingPrep stock quote finance-api</PackageTags >
21
21
<PackageProjectUrl >https://github.com/MatthiWare/FinancialModelingPrep.NET</PackageProjectUrl >
22
22
<PackageReleaseNotes >
23
- - Search on any exchange
23
+ - GetEnterpriseValueAsync Type fixed
24
24
</PackageReleaseNotes >
25
25
<AssemblyName >FinancialModelingPrep</AssemblyName >
26
26
</PropertyGroup >
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ public class EnterpriseValueResponse
20
20
public double MarketCapitalization { get ; set ; }
21
21
22
22
[ JsonPropertyName ( "minusCashAndCashEquivalents" ) ]
23
- public long MinusCashAndCashEquivalents { get ; set ; }
23
+ public double MinusCashAndCashEquivalents { get ; set ; }
24
24
25
25
[ JsonPropertyName ( "addTotalDebt" ) ]
26
- public long AddTotalDebt { get ; set ; }
26
+ public double AddTotalDebt { get ; set ; }
27
27
28
28
[ JsonPropertyName ( "enterpriseValue" ) ]
29
29
public double EnterpriseValue { get ; set ; }
Original file line number Diff line number Diff line change @@ -111,15 +111,19 @@ public async Task GetSymbolsWithFinancialStatementsAsync()
111
111
Assert . NotEmpty ( result . Data ) ;
112
112
}
113
113
114
- [ Fact ]
115
- public async Task GetEnterpriseValue ( )
114
+ [ Theory ]
115
+ [ InlineData ( "AAPL" ) ]
116
+ [ InlineData ( "AGS.BR" ) ]
117
+ [ InlineData ( "NNN" ) ]
118
+ [ InlineData ( "UGI" ) ]
119
+ public async Task GetEnterpriseValue ( string symbol )
116
120
{
117
- var result = await api . GetEnterpriseValueAsync ( "AAPL" , Period . Annual , 5 ) ;
121
+ var result = await api . GetEnterpriseValueAsync ( symbol , Period . Annual , 5 ) ;
118
122
119
123
result . AssertNoErrors ( ) ;
120
124
Assert . NotEmpty ( result . Data ) ;
121
125
Assert . Equal ( 5 , result . Data . Count ) ;
122
- Assert . All ( result . Data , data => Assert . Equal ( "AAPL" , data . Symbol ) ) ;
126
+ Assert . All ( result . Data , data => Assert . Equal ( symbol , data . Symbol ) ) ;
123
127
}
124
128
125
129
[ Theory ]
You can’t perform that action at this time.
0 commit comments