Exemple #1
0
        private static List <AuthorizationLine> AllLines()
        {
            var allLines     = new List <AuthorizationLine>();
            var counterparts = RiskDataProvider.GetRisks();

            foreach (var counterpart in counterparts)
            {
                var Limit = new Random();
                var lmin  = 1111111;
                var lmax  = 9999999;

                var omin          = 0;
                var omax          = 9999999;
                var random        = new Random();
                var lineSituation = new List <Situation>();
                lineSituation.Add(new Situation()
                {
                    StringTrcType = TrcType.LC, LimitAmount = random.Next(lmin, lmax), OutstandingAmount = random.Next(omin, omax)
                });
                lineSituation.Add(new Situation()
                {
                    StringTrcType = TrcType.LG, LimitAmount = random.Next(lmin, lmax), OutstandingAmount = random.Next(omin, omax)
                });

                lineSituation.Add(new Situation()
                {
                    StringTrcType = TrcType.UnspecificIR, LimitAmount = random.Next(lmin, lmax), OutstandingAmount = random.Next(omin, omax)
                });

                lineSituation.Add(new Situation()
                {
                    StringTrcType = TrcType.LG, LimitAmount = random.Next(lmin, lmax), OutstandingAmount = random.Next(omin, omax)
                });

                allLines.Add(new AuthorizationLine(counterpart.Title)
                {
                    LineSituation = lineSituation
                });
            }
            return(allLines);
        }
Exemple #2
0
 public AuthorizationLine(string counterpart)
 {
     SelectedItem = RiskDataProvider.GetRisks().SingleOrDefault(x => x.Title == counterpart);
     this._risklegalCounterpart = counterpart;
 }