C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
Test_View_Factories.cs
Go to the documentation of this file.
1using AnalyzeRe;
4
5#if MSTEST
6using Microsoft.VisualStudio.TestTools.UnitTesting;
7#elif NUNIT
8using TestClass = NUnit.Framework.TestFixtureAttribute;
9using TestMethod = NUnit.Framework.TestAttribute;
10using TestCategory = NUnit.Framework.CategoryAttribute;
11#endif
12
14{
17 [TestClass]
19 {
20 private const string Category = "Test_View_Factories";
21
22 [TestMethod, TestCategory(Category)]
24 {
25 CatXL catxl = new CatXL();
26 // Test creation of a layer_view using an Analysis Profile instance.
27 ILayerView<CatXL> _ = LayerViews.Create(catxl, new AnalysisProfile());
28 // Test creation of a layer_view using an Analysis Profile reference.
29 _ = LayerViews.Create(catxl, new AnalysisProfile().ToReference());
30 // Test creation of a layer_view using an explicitly converted analysis profile reference
32 }
33
34 [TestMethod, TestCategory(Category)]
36 {
37 ILayer catxl = new CatXL();
39 }
40 }
41}
Test the Reference class to ensure View_Factories of different types and instantiated in different wa...
A configuration of resources used to simulate a layer or portfolio.
LayerView factory class.
Definition LayerViews.cs:9
Representation of a Catastrophe Excess of Loss (CatXL) layer.
Definition CatXL.cs:9
Implements the reference entity interface, with support for resolving references using lazy loading.
Represents the Analysis of a Layer.
Abstract representation of a layer.
Definition ILayer.cs:7