예제 #1
0
        private void SeedClaimList()
        {
            KomodoClaims first  = new KomodoClaims(1, "Auto", "Car accident on 465.", "$400.00", "4/25/18", "4/27/18", "true");
            KomodoClaims second = new KomodoClaims(2, "Home", "House fire in Kitchen.", "$4000.00", "4/11/18", "4/12/18", "true");
            KomodoClaims third  = new KomodoClaims(3, "Theft", "Stolen pancakes.", "$4.00", "4/27/18", "6/01/18", "false");

            _claimsRepo.EnterNewClaims(first);
            _claimsRepo.EnterNewClaims(second);
            _claimsRepo.EnterNewClaims(third);

            /**string[] claimID = { "1", "2","3" };
             * string[] type = {"Car","Home","Theft" };
             * string[] description = {"Car accident on 465.","House fire in kitchen.","Stolen pancakes." };
             * string[] amount = {"$400.00","$4000.00","$4.00" };
             * string[] incidentDate = {"4/25/18","4/11/18","4/27/18" };
             * string[] claimDate = {"4/27/18","4/12/18","6/01/18" };
             * string[] isValid = {"true","true","false" };
             *
             * Console.WriteLine("{0,-20} {1,5}\n", "ClaimID", "Type","Description","Amount","Incident Date","Claim Date","IsValid");
             *
             *  Console.WriteLine("{0,-20} {1,5:N1}", claimID, type, description, amount, incidentDate, claimDate, isValid);
             * DataTable dt = new DataTable();
             *
             * dt.Columns.Add("Claim ID");
             * dt.Columns.Add("Type");
             * dt.Columns.Add("Description");
             * dt.Columns.Add("Amount");
             * dt.Columns.Add("Incident Date");
             * dt.Columns.Add("Claim Date");
             * dt.Columns.Add("IsValid");
             *
             * dt.Rows.Add("1", "Auto", "Car accident on 465.", "$400.00", "4/25/18", "4/27/18", true);
             * dt.Rows.Add("2", "Home", "House fire in kitchen.", "$4000.00", "4/11/18", "4/12/18", true);
             * dt.Rows.Add("3", "Theft", "Stolen pancakes.", "$4.00", "4/27/18", "6/01/18", false);
             *
             * Console.WriteLine(dt);
             **/
        }