public void MustSucceedLogin() { var client = new EzAuthClient("http://localhost/api"); var res = client.Login("admin", "12345678").Result; Assert.IsTrue(res); }
public void MustGetToken() { var client = new EzAuthClient("http://localhost/api"); var res = client.Login("admin", "12345678").Result; Assert.IsTrue(Regex.IsMatch(client.Token, @"[a-f0-9]{64}")); }
public void MustSucceedRequestActivation() { var client = new EzAuthClient("http://localhost/api"); var res = client.Login("admin", "12345678").Result; var af = File.ReadAllBytes("/home/ayman/Projects/ezauth-client/EZAuthClient.Tests/key"); Assert.IsTrue(client.RequestActivation(af).Result); }
public void MustSucceedDecrptLicense() { var client = new EzAuthClient("http://localhost/api"); var licenseKey = }
public void MustFailLogin() { var client = new EzAuthClient("http://localhost/api"); Assert.IsFalse(client.Login("root", "123").Result); }