1using System.Collections.Generic;
8using Microsoft.VisualStudio.TestTools.UnitTesting;
11using TestClass = NUnit.Framework.TestFixtureAttribute;
12using TestMethod = NUnit.Framework.TestAttribute;
28 Assert.IsTrue(first.
Equals(first));
30 Assert.IsTrue(first.
Equals(second));
31 Assert.IsTrue(second.
Equals(first));
35 Assert.IsFalse(first.
Equals(second));
39 Assert.IsFalse(first.
Equals(second));
45 transform_records =
new HashSet<RecordType> {
RecordType.Loss, RecordType.FixedExpense }
49 transform_records =
new HashSet<RecordType> {
RecordType.FixedExpense, RecordType.Loss }
51 Assert.IsTrue(first.
Equals(second));
56 Assert.IsFalse(first.
Equals(second));
61 Assert.IsTrue(first.
Equals(second));
69 Assert.IsTrue(first.
Equals(first));
70 Fee second = first.DeepCopy();
71 Assert.IsTrue(first.
Equals(second));
72 Assert.IsTrue(second.
Equals(first));
76 Assert.IsFalse(first.
Equals(second));
80 Assert.IsFalse(first.
Equals(second));
86 premiums =
new List<FeeReference>{
FeeReference.
Premium, FeeReference.ReinstatementPremium }
92 Assert.IsTrue(first.
Equals(second));
100 Assert.IsFalse(empty.
Equals(
null));
101 Assert.IsTrue(empty.
Equals(empty));
107 Assert.IsFalse(sample.
Equals(
null));
108 Assert.IsFalse(sample.
Equals(empty));
109 Assert.IsTrue(sample.
Equals(sample));
139 Assert.IsFalse(empty.
Equals(
null));
140 Assert.IsTrue(empty.
Equals(empty));
146 Assert.IsFalse(sample.
Equals(
null));
147 Assert.IsFalse(sample.
Equals(empty));
148 Assert.IsTrue(sample.
Equals(sample));
static ProportionalExpense ProportionalExpense
static FixedExpense FixedExpense
static ProfitCommission ProfitCommission
Exposes sample resource objects, with built-in methods for injecting dependencies.
static Policy TransformAllPolicy
static Policy ForwardAllPolicy
Test the MonetaryUnit by playing with the premium on a Layer_WithTerms object. This is a necessary sp...
void Test_Fee_Equatable()
void Test_Payment_Equatable()
void Test_Policy_Equatable()
void Test_FeeReference_Equatable()
Represents a reference, used in Fee objects.
static FeeReference Losses
Layer Losses Reference.
static FeeReference ReinstatementBrokerage
Reinstatement Brokerage Reference.
static FeeReference Premium
Premium reference.
bool Equals(FeeReference other)
Determine if this FeeReference is equivalent to another.
static FeeReference CreateFromFeeName(string name)
Create a reference to a Fee from its name.
override int GetHashCode()
Get the HashCode for this FeeReference.
static FeeReference ReinstatementPremium
Reinstatement Premium Reference.
static FeeReference CreateFromPremiumOrLossName(string name)
Create a reference to a Premium or Loss from its name.
Abstract representation of a fee. This resource type cannot be instantiated instead derived resource ...
override int GetHashCode()
Get the HashCode for this Fee.
The Profit Commission applies a fee that is the sum of the premium sources minus the sum of loss and ...
Describes a single payment, which consists of a delay and fracational amount.
bool Equals(Payment other)
Determine if this Payment is equivalent to another.
override int GetHashCode()
Get the HashCode for this Payment.
A "delayed payment" payment pattern models claims being paid in instalments at fixed delays after the...
Layer Policy is the rule on RecordType that determines how occurrences belonging to a particular Reco...
bool Equals(Policy other)
Determine if this Policy is equivalent to another.
override int GetHashCode()
Get the HashCode for this Policy.
HashSet< RecordType > forward_records
When a record type is listed under forward, all input occurrences with the matching record type are n...
RecordType
The type of occurrence.