コード例 #1
0
ファイル: PersonTest.cs プロジェクト: rahman-vali/Valiasr
 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
ファイル: Customer.cs プロジェクト: rahman-vali/Valiasr
        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
ファイル: Customer.cs プロジェクト: rahman-vali/Valiasr
 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;
 }