-
Notifications
You must be signed in to change notification settings - Fork 238
Expand file tree
/
Copy pathSlackMother.cs
More file actions
30 lines (29 loc) · 1.11 KB
/
SlackMother.cs
File metadata and controls
30 lines (29 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using SlackAPI;
using SlackAPI.Models;
namespace IntegrationTest.Helpers
{
public class SlackMother
{
public static Attachment[] SomeAttachments => new[]
{
new Attachment()
{
Fallback = "Required plain-text summary of the attachment.",
Color = "#36a64f",
Pretext = "Optional text that appears above the attachment block",
AuthorName = "Bobby Tables",
AuthorLink = "http://flickr.com/bobby/",
AuthorIcon = "http://flickr.com/icons/bobby.jpg",
Title = "Slack API Documentation",
TitleLink = "https://api.slack.com/",
Text = "Optional text that appears within the attachment",
Fields = new[]
{
new Field() { Title = "Priority", Value = "High", IsShort = false },
new Field() { Title = "Priority", Value = "High", IsShort = true },
new Field() { Title = "Priority", Value = "High", IsShort = true }
}
}
};
}
}