예제 #1
0
 public void Write_User()
 {
     var writer = new SqlUserWriter();
     writer.WriteUserInfo(new UserInfo
                              {
                                  Name = "test",
                                  FollowerCount = 6,
                                  FriendCount = 2,
                                  Location = "Here"
                              });
 }
예제 #2
0
 public void Write_Friends()
 {
     var writer = new SqlUserWriter();
     writer.WriteUserInfo(new UserInfo
                              {
                                  Name = "test",
                                  FollowerCount = 6,
                                  FriendCount = 2,
                                  Location = "Here"
                              });
     writer.WriteFriends("test", new List<UserInfo>
                                     {
                                         new UserInfo {Name = "friend1"},
                                         new UserInfo {Name = "friend2", Location ="xyz"},
                                     });
 }