public async Task ShouldRecommendNotWorkWithoutLogin() { var api = new MusicApi(); await Assert.ThrowsExceptionAsync <HttpRequestException>(api.RecommendAsync <Playlist>); api.Dispose(); }
public async Task ShouldCookiePersist() { var storage = new Storage(); var api = new MusicApi(storage); var user = api.Me ?? await api.LoginAsync(Configuration.Username, Configuration.Password); api.Dispose(); api = new MusicApi(storage); Assert.IsNotNull(api.Me); await api.RecommendAsync <Song>(); }
public static void AssemblyCleanup() { Api.Dispose(); }