コード例 #1
0
 public void ServiceAddKarmaTest()
 {
     CongregatioServiceClient client = new CongregatioServiceClient();
     var user = ObjectHelpers.CreateUser("*****@*****.**");
     client.AddUser(user);
     user = client.FindUserByEmail(user.Email);
     client.IncrementKarma(user.UserId);
     user = client.FindUserByEmail(user.Email);
     Assert.IsTrue(user.Karma == 1);
     client.DecrementKarma(user.UserId);
     user = client.FindUserByEmail(user.Email);
     Assert.IsTrue(user.Karma == 0);
     CleanUp(user, client);
 }