public async Task LoginAsync_GivenValidCredentials_ReturnsTokenAndAccountId()
        {
            var api     = new VesyncApi(Configuration);
            var account = await api.LoginAsync();

            account.Result.Should().NotBeNull();
            account.Result.Token.Should().NotBeNullOrWhiteSpace();
            account.Result.AccountId.Should().NotBeNullOrWhiteSpace();
        }
示例#2
0
 public async Task Initialize()
 {
     Api     = new VesyncApi(Configuration);
     Account = await Api.LoginAsync();
 }