Exemplo n.º 1
0
        public virtual void coverage()
        {
            LegalEntityGroup test = LegalEntityGroup.of("Foo");

            assertEquals(test.ToString(), "Foo");
        }
Exemplo n.º 2
0
 /// <summary>
 /// Finds the issuer curve for the legal entity group and currency if there is one in the group.
 /// <para>
 /// If the curve is not found, optional empty is returned.
 ///
 /// </para>
 /// </summary>
 /// <param name="legalEntityGroup">  the legal entity group </param>
 /// <param name="currency">  the currency </param>
 /// <returns> the issuer curve for the legal entity group and currency if there is one in the group </returns>
 public Optional <Curve> findIssuerCurve(LegalEntityGroup legalEntityGroup, Currency currency)
 {
     return(Optional.ofNullable(issuerCurves.get(Pair.of(legalEntityGroup, currency))));
 }