Пример #1
0
        public CLI()
        {
            Manager = new ContactManager(DefaultRecordsFile);

            var user = Manager.CreateUser(
                "admin",
                User.UserRole.Admin
            );
            Manager.AddUser(user);

            var contact = Manager.CreateContact(
                "小明",
                ContactUser.ContactGender.Male,
                "Earth (for now)",
                DateTime.Today,
                "GDUT",
                "13800138000"
            );
            Manager.AddContact(contact);

            var comment = Manager.CreateComment(
                contact,
                "This is a test 😀"
            );

            Manager.Dump();
        }
Пример #2
0
 public CLI(String recordsFile)
 {
     Manager = new ContactManager(recordsFile);
 }