public Quote(Guid id, decimal amount, string underwriter, RFQ info)
 {
     Id          = id;
     Amount      = amount;
     Info        = info;
     Underwriter = underwriter;
 }
Beispiel #2
0
        public static RFQ GenerateQuote()
        {
            var r   = new Random();
            var f   = new Faker("en");
            var p   = f.Person;
            var rfq = new RFQ(
                driver: $"{p.FullName}",
                age: r.Next(40) + 18,
                regNo: Bogus.Extensions.UnitedKingdom
                .RegistrationPlateExtensionsForGreatBritain
                .GbRegistrationPlate(new Vehicle(), new DateTime(2002, 1, 1), new DateTime(2019, 1, 1))
                );

            return(rfq);
        }
 public Quote()
 {
     Info = new RFQ();
 }