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(); }
public async Task Initialize() { Api = new VesyncApi(Configuration); Account = await Api.LoginAsync(); }