C# Client Library
A C# Client Library for the AnalyzeRe REST API
|
Exposes sample resource objects, with built-in methods for injecting dependencies. More...
Classes | |
class | CSV |
Exposes the various sample CSV files as strings. More... | |
class | Fees |
Public Member Functions | |
IInjectableResource< ILayerView< T > > | GetInjectableLayerView< T > (IInjectableResource< T > layer, IInjectableResource< AnalysisProfile > analysisProfile=null, string target_currency=null) |
Factory for producing injectable LayerViews using a Layer and a injectable AnalysisProfile for use in testing. | |
IInjectableResource< ILayerView< T > > | GetInjectableLayerView< T > (T layer, IInjectableResource< AnalysisProfile > analysisProfile=null, string target_currency=null) |
Factory for producing injectable LayerViews using a Layer and a injectable AnalysisProfile for use in testing. | |
IInjectableResource< LoadedLossSet > | GetInjectableLoadedLossSet (IInjectableResource< LossSet > source, double load=1.0, LossType? loss_type=null) |
Factory for producing injectable LoadedLossSets using a POSTable injectable Layer for use in testing. | |
IInjectableResource< Nested > | GetInjectableNestedLayer (IInjectableResource< ILayerSource > sink, IEnumerable< IInjectableResource< ILayerSource > > sources, bool inline=false) |
Factory for producing injectable NestedLayers using a POSTable injectable Layer for use in testing. | |
IInjectableResource< NestedLayerLossSet > | GetInjectableNestedLayerLossSet (IInjectableResource< ILayer > layer, LossType? loss_type=null) |
Factory for producing injectable NestedLayerLossSets using a POSTable injectable Layer for use in testing. | |
IInjectableResource< OptimizationView > | GetInjectableOptimizationView (IEnumerable< IInjectableResource< Layer > > layers) |
IInjectableResource< PortfolioView > | GetInjectablePortfolioView (IInjectableResource< StaticPortfolio > portfolio, IInjectableResource< AnalysisProfile > analysisProfile, string target_currency=null) |
Factory for producing injectable PortfolioViews using a Portfolio and a injectable AnalysisProfile for use in testing. | |
IInjectableResource< YELTLossSet > | GetInjectableYELT (string currency="USD", string data=null, LossType lossType=LossType.LossGross) |
Helper function for creating a YELT Loss Set with a specific configuration. | |
IInjectableResource< YLTLossSet > | GetInjectableYLT (string data=null, LossType lossType=LossType.LossGross) |
Helper function for creating a YLT Loss Set with a specific configuration. | |
void | Reset () |
Reset all cached injected resources. | |
Static Public Member Functions | |
static List< Type > | GetAPIResourceTypes () |
A list of base "production" resource types on the server, (e.g. each with their own collection) used for several tests. | |
Public Attributes | |
bool | OfflineMode = EnvironmentSettings.RUN_OFFLINE |
Can be set to true to avoid POSTing resources, and instead injecting mock resources with invalid ids where appropriate. | |
DateTime | SimulationStartDate = DateTime.UtcNow.Date |
The relative start_date to use for all new resources that require an absolute DateTime point of reference (e.g. StaticSimulation.start_date, ILossSet_Simulated.start_date, ParametricLossSet.start_date, ILayer_WithTerms.inception_date and ILayer_WithTerms.expiry_date, NoClaimsBonus.payout_date, FixedDatePayment.payment_dates, etc.) | |
Static Public Attributes | |
static readonly PollingOptions | DataPollingOptions |
Polling options to use when uploading a data file. | |
static Parameters | UploadParams |
The LargeDataUpload parameters to use when uploading data for test fixtures. | |
Exposes sample resource objects, with built-in methods for injecting dependencies.
Definition at line 13 of file Samples.cs.
|
static |
A list of base "production" resource types on the server, (e.g. each with their own collection) used for several tests.
Explicitly excludes resources that are either deprecated or not yet considered "production-ready" - specifically:
|
inline |
Factory for producing injectable LayerViews using a Layer and a injectable AnalysisProfile for use in testing.
T | The layer type. |
layer | The injectable layer to use in the layerView definition. |
analysisProfile | The injectable analysis profile to use. |
target_currency | (Optional) The target currency to specify. |
T | : | ILayer |
Definition at line 844 of file Samples.Injectable.cs.
|
inline |
Factory for producing injectable LayerViews using a Layer and a injectable AnalysisProfile for use in testing.
T | The layer type. |
layer | The layer to use in the layerView definition. |
analysisProfile | The analysis profile to use. |
target_currency | (Optional) The target currency to specify. |
T | : | ILayer |
Definition at line 862 of file Samples.Injectable.cs.
|
inline |
Factory for producing injectable LoadedLossSets using a POSTable injectable Layer for use in testing.
source | The injectable loss set to post and reference in the LoadedLossSet definition. |
load | (Optional) The load to use. |
loss_type | (Optional) The loss_type to use. |
Definition at line 1148 of file Samples.Injectable.cs.
|
inline |
Factory for producing injectable NestedLayers using a POSTable injectable Layer for use in testing.
sink | The injectable layer to post and use as the sink. |
sources | The injectable layers to post and use as the sources. |
inline | (Optional) if changed to true, the sink and sources will be inlined instead of referenced (only valid when sink and sources are layers). |
Definition at line 699 of file Samples.Injectable.cs.
|
inline |
Factory for producing injectable NestedLayerLossSets using a POSTable injectable Layer for use in testing.
layer | The injectable layer to post and reference in the NestedLayerLossSet definition. |
loss_type | (Optional) The loss_type to use. |
Definition at line 1049 of file Samples.Injectable.cs.
|
inline |
Definition at line 1216 of file Samples.Injectable.cs.
|
inline |
Factory for producing injectable PortfolioViews using a Portfolio and a injectable AnalysisProfile for use in testing.
portfolio | The injectable portfolio to use in the portfolioView definition. |
analysisProfile | The injectable analysis profile to use. |
target_currency | (Optional) The target currency to specify. |
Definition at line 1346 of file Samples.Injectable.cs.
|
inline |
Helper function for creating a YELT Loss Set with a specific configuration.
Definition at line 1080 of file Samples.Injectable.cs.
|
inline |
Helper function for creating a YLT Loss Set with a specific configuration.
Definition at line 1108 of file Samples.Injectable.cs.
|
inline |
Reset all cached injected resources.
Definition at line 43 of file Samples.Injectable.cs.
|
static |
Polling options to use when uploading a data file.
Definition at line 32 of file Samples.Injectable.cs.
bool AnalyzeReTesting.Samples.OfflineMode = EnvironmentSettings.RUN_OFFLINE |
Can be set to true to avoid POSTing resources, and instead injecting mock resources with invalid ids where appropriate.
Definition at line 29 of file Samples.Injectable.cs.
DateTime AnalyzeReTesting.Samples.SimulationStartDate = DateTime.UtcNow.Date |
The relative start_date to use for all new resources that require an absolute DateTime point of reference (e.g. StaticSimulation.start_date, ILossSet_Simulated.start_date, ParametricLossSet.start_date, ILayer_WithTerms.inception_date and ILayer_WithTerms.expiry_date, NoClaimsBonus.payout_date, FixedDatePayment.payment_dates, etc.)
Definition at line 55 of file Samples.Injectable.cs.
|
static |
The LargeDataUpload parameters to use when uploading data for test fixtures.
Definition at line 38 of file Samples.Injectable.cs.
|
get |
Definition at line 160 of file Samples.Injectable.cs.
|
get |
A list of one of each type of layer.
Definition at line 400 of file Samples.Injectable.cs.
|
get |
A list of one of each type of layer.
Definition at line 724 of file Samples.Injectable.cs.
|
get |
One sample of each loss set type, all with the loss_type set to LossType.LossGross to maximize potential use cases.
Definition at line 984 of file Samples.Injectable.cs.
|
staticget |
Returns the set of all record types as a new HashSet instance.
Definition at line 111 of file Samples.cs.
|
get |
A list of one of each type of layer that can be POSTed. Layer types that cannot be posted on their own to the /layers/ endpoint (i.e. that can only be inlined in a layer_view) are excluded. Note that those layer types all possess the NotSaveableAttribute attribute.
Definition at line 425 of file Samples.Injectable.cs.
|
get |
Definition at line 172 of file Samples.Injectable.cs.
|
get |
Definition at line 187 of file Samples.Injectable.cs.
|
get |
An analysis profile with one of each possible type of filter.
This is the default analysis profile used by most tests.
Definition at line 204 of file Samples.Injectable.cs.
|
get |
An analysis profile containing only an AnyFilter.
Used primarily as an alternative analysis profile when testing PUT on IAPIAnalysis.analysis_profile properties and the impact of analysis profile mismatches.
Definition at line 230 of file Samples.Injectable.cs.
|
get |
Definition at line 246 of file Samples.Injectable.cs.
|
get |
Definition at line 256 of file Samples.Injectable.cs.
|
get |
Definition at line 264 of file Samples.Injectable.cs.
|
get |
Definition at line 273 of file Samples.Injectable.cs.
|
get |
Definition at line 311 of file Samples.Injectable.cs.
|
get |
Definition at line 281 of file Samples.Injectable.cs.
|
get |
Definition at line 291 of file Samples.Injectable.cs.
|
get |
Definition at line 301 of file Samples.Injectable.cs.
|
get |
Definition at line 320 of file Samples.Injectable.cs.
|
get |
Definition at line 330 of file Samples.Injectable.cs.
|
get |
Definition at line 339 of file Samples.Injectable.cs.
|
get |
Definition at line 349 of file Samples.Injectable.cs.
|
get |
Definition at line 361 of file Samples.Injectable.cs.
|
get |
Definition at line 384 of file Samples.Injectable.cs.
|
get |
Definition at line 373 of file Samples.Injectable.cs.
|
staticget |
Definition at line 123 of file Samples.cs.
|
get |
Definition at line 515 of file Samples.Injectable.cs.
|
get |
Definition at line 429 of file Samples.Injectable.cs.
|
get |
Definition at line 647 of file Samples.Injectable.cs.
|
get |
Definition at line 451 of file Samples.Injectable.cs.
|
get |
Definition at line 659 of file Samples.Injectable.cs.
|
get |
Definition at line 574 of file Samples.Injectable.cs.
|
get |
Definition at line 674 of file Samples.Injectable.cs.
|
get |
Definition at line 593 of file Samples.Injectable.cs.
|
get |
Definition at line 473 of file Samples.Injectable.cs.
|
get |
Definition at line 554 of file Samples.Injectable.cs.
|
get |
Definition at line 609 of file Samples.Injectable.cs.
|
get |
A simple nested layer retaining a CatXL source's losses to an AggXL sink.
Definition at line 688 of file Samples.Injectable.cs.
|
get |
Definition at line 625 of file Samples.Injectable.cs.
|
get |
Definition at line 497 of file Samples.Injectable.cs.
|
get |
Definition at line 535 of file Samples.Injectable.cs.
|
get |
Definition at line 636 of file Samples.Injectable.cs.
|
get |
Definition at line 765 of file Samples.Injectable.cs.
|
get |
Definition at line 745 of file Samples.Injectable.cs.
|
get |
Definition at line 822 of file Samples.Injectable.cs.
|
get |
Definition at line 750 of file Samples.Injectable.cs.
|
get |
Definition at line 827 of file Samples.Injectable.cs.
|
get |
Definition at line 785 of file Samples.Injectable.cs.
|
get |
Definition at line 832 of file Samples.Injectable.cs.
|
get |
Definition at line 801 of file Samples.Injectable.cs.
|
get |
Definition at line 755 of file Samples.Injectable.cs.
|
get |
Definition at line 775 of file Samples.Injectable.cs.
|
get |
Definition at line 807 of file Samples.Injectable.cs.
|
get |
Definition at line 780 of file Samples.Injectable.cs.
|
get |
Definition at line 812 of file Samples.Injectable.cs.
|
get |
Definition at line 760 of file Samples.Injectable.cs.
|
get |
Definition at line 770 of file Samples.Injectable.cs.
|
get |
Definition at line 817 of file Samples.Injectable.cs.
|
get |
Definition at line 877 of file Samples.Injectable.cs.
|
get |
Definition at line 892 of file Samples.Injectable.cs.
|
get |
Definition at line 902 of file Samples.Injectable.cs.
|
get |
Definition at line 925 of file Samples.Injectable.cs.
|
get |
Definition at line 938 of file Samples.Injectable.cs.
|
get |
Definition at line 951 of file Samples.Injectable.cs.
|
get |
Definition at line 966 of file Samples.Injectable.cs.
|
get |
Definition at line 914 of file Samples.Injectable.cs.
|
get |
Definition at line 996 of file Samples.Injectable.cs.
|
get |
A simple LoadedLossSet loading a ELTLossSets losses.
Definition at line 1137 of file Samples.Injectable.cs.
|
get |
A simple NestedLayerLossSet retaining a CatXL layer's losses.
Definition at line 1038 of file Samples.Injectable.cs.
|
get |
Definition at line 1064 of file Samples.Injectable.cs.
|
get |
Definition at line 1022 of file Samples.Injectable.cs.
|
get |
Definition at line 1164 of file Samples.Injectable.cs.
|
get |
Definition at line 1008 of file Samples.Injectable.cs.
|
get |
Definition at line 1096 of file Samples.Injectable.cs.
|
get |
Definition at line 1100 of file Samples.Injectable.cs.
|
get |
Definition at line 1124 of file Samples.Injectable.cs.
|
get |
Definition at line 1128 of file Samples.Injectable.cs.
|
get |
Definition at line 1273 of file Samples.Injectable.cs.
|
get |
A sample acceptable optimization_view custom_parameters dictionary.
TODO: No longer necessary once custom parameters are more structured
Definition at line 1179 of file Samples.Injectable.cs.
|
get |
Definition at line 1237 of file Samples.Injectable.cs.
|
staticget |
Definition at line 113 of file Samples.cs.
|
get |
Definition at line 1302 of file Samples.Injectable.cs.
|
get |
Definition at line 1324 of file Samples.Injectable.cs.
|
get |
Definition at line 1319 of file Samples.Injectable.cs.
|
get |
Sample comes from ARE-2652.
Definition at line 1245 of file Samples.Injectable.cs.
|
staticget |
Definition at line 51 of file Samples.cs.
|
staticget |
Definition at line 43 of file Samples.cs.
|
get |
Definition at line 1364 of file Samples.Injectable.cs.
|
staticget |
Definition at line 121 of file Samples.cs.
|
staticget |
Definition at line 41 of file Samples.cs.