Beispiel #1
0
 public void TestMyReadifyKnockRemote()
 {
     using (var client = new RedPillClient("knockEndpoint", "http://misc.fonlow.com/ReadifyKnock/Knock.svc"))
     {
         var token = client.WhatIsYourToken();
         Assert.Equal(myToken, token);
     }
 }
Beispiel #2
0
 public void TestMyReadifyKnockLocal()
 {
     using (var client = new RedPillClient("knockEndpoint"))
     {
         var token = client.WhatIsYourToken();
         Assert.Equal(myToken, token);
     }
 }
        public void WhatIsYourToken()
        {
            // Arrange
              RedPillClient client = new RedPillClient();

              // Act
              var guid = client.WhatIsYourToken();

              // Assert
              Assert.IsTrue(guid.ToString().Equals("3d9c5943-dcf9-41da-9acc-53f10c723a51"));

              // Always close the client.
              client.Close();
        }