Example #1
0
        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();
        }
Example #2
0
        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();
        }