public async Task <string> GetApiToken(string username, string password) { try { var token = await _idServerDemoService.GetApiToken(username, password); return(token); } catch (Exception e) { Console.WriteLine(e); throw; } }
public async System.Threading.Tasks.Task Test1Async() { var token = await _idServerDemoService.GetApiToken("m2m", "secret"); Assert.NotEqual(token, string.Empty); }