public void callLogin() { Dictionary <string, string> dict = readCredentials("../../base.txt"); Configuration.GetInstance().Init(dict); ReflectiveClient client = new ReflectiveClient(); string token = client.Login(); Assert.IsTrue(token.Length > 0, "should return some token"); }
public void failedLogin() { var failed = false; try { string token = ReflectiveClient.Login("https://test.reflective.dk", "what is this?", "non", "{\"domain\": \"bogus\"}"); } catch (Exception e) { failed = true; } Assert.IsTrue(failed, "should fail login"); }
public void profile() { Dictionary <string, string> dict = readCredentials("../../hjertekoebing.txt"); Configuration.GetInstance().Init(dict); ReflectiveClient client = new ReflectiveClient(); client.Login(); Dictionary <string, Object> profileResult = client.Profile("*****@*****.**", null); Console.WriteLine(profileResult); Assert.AreEqual(profileResult["cprNr"], "1111111111"); }