forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestConfig.cs
More file actions
44 lines (36 loc) · 1.1 KB
/
TestConfig.cs
File metadata and controls
44 lines (36 loc) · 1.1 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
// Copyright (c) Service Stack LLC. All Rights Reserved.
// License: https://raw.github.com/ServiceStack/ServiceStack/master/license.txt
using ServiceStack.Logging;
using ServiceStack.Redis;
using ServiceStack.Support;
namespace ServiceStack.Server.Tests
{
public static class TestConfig
{
static TestConfig()
{
LogManager.LogFactory = new InMemoryLogFactory();
}
public const bool IgnoreLongTests = true;
public const string SingleHost = "localhost";
public static readonly string[] MasterHosts = new[] { "localhost" };
public static readonly string[] SlaveHosts = new[] { "localhost" };
public const int RedisPort = 6379;
public static string SingleHostConnectionString
{
get
{
return SingleHost + ":" + RedisPort;
}
}
public static BasicRedisClientManager BasicClientManger
{
get
{
return new BasicRedisClientManager(new[] {
SingleHostConnectionString
});
}
}
}
}