예제 #1
0
 /// <summary>
 /// Finds the repo curve for the repo 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="repoGroup">  the repo group </param>
 /// <param name="currency">  the currency </param>
 /// <returns> the repo curve for the repo group and currency if there is one in the group </returns>
 public Optional <Curve> findRepoCurve(RepoGroup repoGroup, Currency currency)
 {
     return(Optional.ofNullable(repoCurves.get(Pair.of(repoGroup, currency))));
 }
예제 #2
0
        public virtual void coverage()
        {
            RepoGroup test = RepoGroup.of("Foo");

            assertEquals(test.ToString(), "Foo");
        }