Пример #1
0
            public void GetUser_Returns_An_Instance_Of_FBUser_When_Token_Is_Valid_And_UserId_Matches_Id_Retrieved()
            {
                var result = FacebookMarketingUserInfoClient.GetUser(UserId, Token);

                Assert.IsNotNull(result);
                Assert.AreEqual(UserId, result.Id);
            }
Пример #2
0
 public void GetUser_Returns_Null_When_Token_Is_Valid_But_UserId_Does_Not_Match_Id_Retrieved()
 {
     Assert.IsNull(FacebookMarketingUserInfoClient.GetUser(ObjectMother.Create <string>(), Token));
 }
Пример #3
0
 public void GetUser_Returns_Null_When_No_Data_Is_Retrieved_Because_Token_Is_Invalid()
 {
     Assert.IsNull(FacebookMarketingUserInfoClient
                   .GetUser(ObjectMother.Create <string>(), ObjectMother.Create <string>()));
 }