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 55 <RootNamespace >MatthiWare.FinancialModelingPrep</RootNamespace >
66 <PackageRequireLicenseAcceptance >true</PackageRequireLicenseAcceptance >
77 <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 >
1010 <Company >MatthiWare</Company >
1111 <PackageId >MatthiWare.FinancialModelingPrep</PackageId >
12- <Version >0.1.11 </Version >
12+ <Version >0.1.12 </Version >
1313 <Description >FinancialModelingPrep API Client written in .NET 5</Description >
1414 <Copyright >Copyright Matthias Beerens 2021</Copyright >
1515 <Product >FinancialModelingPrep API Client</Product >
2020 <PackageTags >FinancialModelingPrep stock quote finance-api</PackageTags >
2121 <PackageProjectUrl >https://github.com/MatthiWare/FinancialModelingPrep.NET</PackageProjectUrl >
2222 <PackageReleaseNotes >
23- - Search on any exchange
23+ - GetEnterpriseValueAsync Type fixed
2424 </PackageReleaseNotes >
2525 <AssemblyName >FinancialModelingPrep</AssemblyName >
2626 </PropertyGroup >
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ public class EnterpriseValueResponse
2020 public double MarketCapitalization { get ; set ; }
2121
2222 [ JsonPropertyName ( "minusCashAndCashEquivalents" ) ]
23- public long MinusCashAndCashEquivalents { get ; set ; }
23+ public double MinusCashAndCashEquivalents { get ; set ; }
2424
2525 [ JsonPropertyName ( "addTotalDebt" ) ]
26- public long AddTotalDebt { get ; set ; }
26+ public double AddTotalDebt { get ; set ; }
2727
2828 [ JsonPropertyName ( "enterpriseValue" ) ]
2929 public double EnterpriseValue { get ; set ; }
Original file line number Diff line number Diff line change @@ -111,15 +111,19 @@ public async Task GetSymbolsWithFinancialStatementsAsync()
111111 Assert . NotEmpty ( result . Data ) ;
112112 }
113113
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 )
116120 {
117- var result = await api . GetEnterpriseValueAsync ( "AAPL" , Period . Annual , 5 ) ;
121+ var result = await api . GetEnterpriseValueAsync ( symbol , Period . Annual , 5 ) ;
118122
119123 result . AssertNoErrors ( ) ;
120124 Assert . NotEmpty ( result . Data ) ;
121125 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 ) ) ;
123127 }
124128
125129 [ Theory ]
You can’t perform that action at this time.
0 commit comments