• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rwjdk / TrelloDotNet / 21438348630

28 Jan 2026 12:32PM UTC coverage: 80.629% (-0.02%) from 80.649%
21438348630

push

github

rwjdk
WIP

2598 of 3512 branches covered (73.97%)

Branch coverage included in aggregate %.

4586 of 5398 relevant lines covered (84.96%)

129.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

70.37
/src/TrelloDotNet/Model/Webhook/WebhookActionDataBoard.cs
1
using System.Text.Json.Serialization;
2
using System.Threading;
3
using System.Threading.Tasks;
4
using TrelloDotNet.Model.Options.GetBoardOptions;
5

6
namespace TrelloDotNet.Model.Webhook
7
{
8
    /// <summary>
9
    /// Board of the Webhook Action Data
10
    /// </summary>
11
    public class WebhookActionDataBoard
12
    {
13
        /// <summary>
14
        /// Id of the Board
15
        /// </summary>
16
        [JsonPropertyName("id")]
17
        [JsonInclude]
18
        public string Id { get; private set; }
178✔
19

20
        /// <summary>
21
        /// Name of the board
22
        /// </summary>
23
        [JsonPropertyName("name")]
24
        [JsonInclude]
25
        public string Name { get; private set; }
163✔
26

27
        /// <summary>
28
        /// Short Version of Id for the Board
29
        /// </summary>
30
        [JsonPropertyName("shortLink")]
31
        [JsonInclude]
32
        public string ShortLink { get; private set; }
153✔
33

34
        /// <summary>
35
        /// Get the Full Board Object
36
        ///  </summary>
37
        /// <param name="cancellationToken">Cancellation Token</param>
38
        /// <returns>The Board</returns>
39
        public async Task<Board> GetAsync(CancellationToken cancellationToken = default)
40
        {
41
            return await Parent.Parent.TrelloClient.GetBoardAsync(Id, cancellationToken);
×
42
        }
×
43

44
        /// <summary>
45
        /// Get the Full Board Object
46
        ///  </summary>
47
        /// <param name="options">Options</param>
48
        /// <param name="cancellationToken">Cancellation Token</param>
49
        /// <returns>The Board</returns>
50
        public async Task<Board> GetAsync(GetBoardOptions options, CancellationToken cancellationToken = default)
51
        {
52
            if (options == null)
×
53
            {
54
                return await GetAsync(cancellationToken);
×
55
            }
56

57
            return await Parent.Parent.TrelloClient.GetBoardAsync(Id, options, cancellationToken);
×
58
        }
×
59

60
        /// <summary>
61
        /// Parent
62
        /// </summary>
63
        public WebhookActionData Parent { get; internal set; }
145✔
64

65
        internal static WebhookActionDataBoard CreateDummy(Board boardToSimulate)
66
        {
67
            if (boardToSimulate != null)
119✔
68
            {
69
                return new WebhookActionDataBoard()
11✔
70
                {
11✔
71
                    Id = boardToSimulate.Id,
11✔
72
                    Name = boardToSimulate.Name,
11✔
73
                    ShortLink = boardToSimulate.ShortUrl
11✔
74
                };
11✔
75
            }
76

77
            return new WebhookActionDataBoard()
108✔
78
            {
108✔
79
                Id = "63d128787441d05619f44dbe",
108✔
80
                Name = "MyBoard",
108✔
81
                ShortLink = "https://myUrl.com"
108✔
82
            };
108✔
83
        }
84
    }
85
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc