-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeneralServiceTests.cs
More file actions
55 lines (48 loc) · 1.52 KB
/
GeneralServiceTests.cs
File metadata and controls
55 lines (48 loc) · 1.52 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Stubhub.ClientLibrary;
using Stubhub.ClientLibrary.Transfer.Events;
using System.Threading.Tasks;
namespace Stubhub.ClientLibrary
{
[TestClass]
public class GeneralServiceTests
{
private StubhubService _stubhubService;
public GeneralServiceTests()
{
this._stubhubService = new StubhubService();
}
[TestMethod]
public async Task GetInventory_FromStubHub_ReturnsArray()
{
var res = await this._stubhubService.GetInventory(103771750);
Assert.IsNotNull(res);
}
[TestMethod]
public async Task SearchEvents_FromStubHub_ReturnsArray()
{
EventSearchRequest req = new EventSearchRequest();
req.Q = "Tulsa";
var res = await this._stubhubService.SearchEvents(req);
Assert.IsNotNull(res);
}
[TestMethod]
public async Task GetPerfromers_FromStubhub_ReturnsArray()
{
await this._stubhubService.GetPerformers();
}
[TestMethod]
public async Task GetVenues_FromStubhub_ReturnsArray()
{
var res = await this._stubhubService.GetVenues();
Assert.IsNotNull(res);
}
[TestMethod]
public async Task GetCategories_FromStubhub_ReturnsArray()
{
var res = await this._stubhubService.GetCategories();
Assert.IsNotNull(res);
}
}
}