public void CanSetAccessToken() { var dataApiClient = new DataApiClient(ApiSetup.ApiConfiguration); var accessToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InVuaXR0ZXN0YWRtaW4iLCJuYmYiOjE1NTY4ODExMzMsImV4cCI6MTU1Njg4NDczMywiaWF0IjoxNTU2ODgxMTMzfQ.Xe2m2KiROPMFaRt6s828ofMjNjAkEVHjHPccA5eqo2E"; dataApiClient.SetAccessToken(accessToken); Assert.That(dataApiClient.IsLoggedIn, Is.True); Assert.That(dataApiClient.LoginMethod, Is.EqualTo(LoginMethod.JsonWebToken)); Assert.That(dataApiClient.LoggedInUsername, Is.EqualTo("unittestadmin")); }