示例#1
0
        public IPerson CreatePerson()
        {
            IPerson newPerson = serverModel.CreatePerson <IPerson>();

            newPerson.FirstName = "<FirstName>";
            newPerson.LastName  = "<LastName>";
            newPerson.BirthDate = DateTime.Today.ToString(new CultureInfo(newPerson.Country, false));
            People.Add(newPerson);
            return(newPerson);
        }