-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSetup.cs
41 lines (36 loc) · 1004 Bytes
/
Setup.cs
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
using HaloSharp.Model;
using NUnit.Framework;
using System;
namespace HaloSharp.Test
{
[SetUpFixture]
public class Global
{
public static IHaloSession Session;
[SetUp]
public void RunBeforeAnyTests()
{
var developerAccessProduct = new Product
{
SubscriptionKey = "00000000000000000000000000000000",
RateLimit = new RateLimit
{
RequestCount = 10,
TimeSpan = new TimeSpan(0, 0, 0, 10),
Timeout = new TimeSpan(0, 0, 0, 10)
}
};
var cacheSettings = new CacheSettings
{
CacheDuration = null
};
var client = new HaloClient(developerAccessProduct, cacheSettings);
Session = client.StartSession();
}
[TearDown]
public void RunAfterAnyTests()
{
Session.Dispose();
}
}
}