示例#1
0
 public static Lawyer CreateLawyer(Person person)
 {
     var vakil = new Lawyer
     {
         Id = Guid.NewGuid(),
         StartDate = new DateTime(2012, 6, 12),
         Person = person,
     };
     return vakil;
 }
示例#2
0
        public static Lawyer CreateLawyer(Person person, DateTime startDate)
        {
            // Contract.Requires<ArgumentNullException>(person != null ,"person");
            var lawyer = new Lawyer
            {
                Id        = Guid.NewGuid(),
                StartDate = startDate,
                Person    = person,
            };

            return(lawyer);
        }
示例#3
0
 public static Lawyer CreateLawyer(Person person , DateTime startDate)
 {
     // Contract.Requires<ArgumentNullException>(person != null ,"person");
     var lawyer = new Lawyer
     {
         Id = Guid.NewGuid(),
         StartDate = startDate,
         Person = person,
     };
     return lawyer;
 }