blob: fb4ef0246e81307b77c2807707f08b5444ab7b90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
namespace LibMatrix.Tests;
public class Config {
public string? TestHomeserver { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_HOMESERVER") ?? null;
public string? TestUsername { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_USERNAME") ?? null;
public string? TestPassword { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_PASSWORD") ?? null;
public string? TestRoomId { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_ROOM_ID") ?? null;
public string? TestRoomAlias { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_ROOM_ALIAS") ?? null;
public Dictionary<string, string> ExpectedHomeserverMappings { get; set; } = new() {
{"matrix.org", "https://matrix-client.matrix.org"},
{"rory.gay", "https://matrix.rory.gay"}
};
public Dictionary<string, string> ExpectedAliasMappings { get; set; } = new() {
{"#libmatrix:rory.gay", "!tuiLEoMqNOQezxILzt:rory.gay"}
};
}
|