public void IssuerRoleContructionTest()
        {
            Debt       s;
            IssuerRole role;

            try
            {
                using (var db = new FGABusinessComponent.BusinessComponent.FGAContext("PREPROD", compiledModel))
                {
                    s = new Debt(ISIN: "AC0000000001", FinancialInstrumentName: "ClassificationSecurity 1", MaturityDate: new DateTime(2013, 1, 1), interestCoupon: new InterestCalculation(new PercentageRate(2.365), new FrequencyCode(1)));
                    db.Debts.Add(s);
                    db.SaveChanges();
                    role = new IssuerRole("TOTO COMPANY", (CountryCode)"FR");
                    s.Add(role);

                    db.SaveChanges();
                }
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e);
                throw e;
            }
        }
Beispiel #2
0
        public static IssuerRole LookupIssuerRole(FGAContext db, Asset asset)
        {
            IssuerRole issuerRole = db.IssuerRoles.Where <IssuerRole>(r => r.AssetId == asset.Id).FirstOrDefault <IssuerRole>();

            return(issuerRole);
        }