public async Task GetMessagesForAppTestAsync() { GotifySharp gotifySharp = new GotifySharp(Settings.Config); var app = await gotifySharp.CreateApplicationAsync("Name", "Description"); var res = await gotifySharp.GetMessageForApplicationAsync(app.Response.id); res.Success.Should().BeTrue(); }
public async Task SendMessageTestAsync() { GotifySharp gotifySharp = new GotifySharp(Settings.Config); var app = await gotifySharp.CreateApplicationAsync("Name", "Description"); var res = await gotifySharp.SendMessage("Message", "Test", app.Response.token, 2); res.Success.Should().BeTrue(); }