@@ -28,6 +28,31 @@ public void CanConfigureApiKeyFromClientConstructor() {
28
28
var client = new ExceptionlessClient ( "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw" ) ;
29
29
Assert . NotNull ( client ) ;
30
30
Assert . Equal ( "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw" , client . Configuration . ApiKey ) ;
31
+ Assert . True ( client . Configuration . IncludePrivateInformation ) ;
32
+ Assert . True ( client . Configuration . IncludeUserName ) ;
33
+ Assert . True ( client . Configuration . IncludeMachineName ) ;
34
+ Assert . True ( client . Configuration . IncludeIpAddress ) ;
35
+ Assert . True ( client . Configuration . IncludeCookies ) ;
36
+ Assert . True ( client . Configuration . IncludePostData ) ;
37
+ Assert . True ( client . Configuration . IncludeQueryString ) ;
38
+
39
+ client . Configuration . IncludePrivateInformation = false ;
40
+ Assert . False ( client . Configuration . IncludePrivateInformation ) ;
41
+ Assert . False ( client . Configuration . IncludeUserName ) ;
42
+ Assert . False ( client . Configuration . IncludeMachineName ) ;
43
+ Assert . False ( client . Configuration . IncludeIpAddress ) ;
44
+ Assert . False ( client . Configuration . IncludeCookies ) ;
45
+ Assert . False ( client . Configuration . IncludePostData ) ;
46
+ Assert . False ( client . Configuration . IncludeQueryString ) ;
47
+
48
+ client . Configuration . IncludeMachineName = true ;
49
+ Assert . False ( client . Configuration . IncludePrivateInformation ) ;
50
+ Assert . False ( client . Configuration . IncludeUserName ) ;
51
+ Assert . True ( client . Configuration . IncludeMachineName ) ;
52
+ Assert . False ( client . Configuration . IncludeIpAddress ) ;
53
+ Assert . False ( client . Configuration . IncludeCookies ) ;
54
+ Assert . False ( client . Configuration . IncludePostData ) ;
55
+ Assert . False ( client . Configuration . IncludeQueryString ) ;
31
56
}
32
57
33
58
[ Fact ]
@@ -38,11 +63,20 @@ public void CanConfigureClientUsingActionMethod() {
38
63
c . ApiKey = "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw" ;
39
64
c . ServerUrl = "http://localhost:45000" ;
40
65
c . SetVersion ( version ) ;
66
+ c . IncludeUserName = false ;
41
67
} ) ;
42
68
43
69
Assert . Equal ( "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw" , client . Configuration . ApiKey ) ;
44
70
Assert . Equal ( "http://localhost:45000" , client . Configuration . ServerUrl ) ;
45
71
Assert . Equal ( version , client . Configuration . DefaultData [ Event . KnownDataKeys . Version ] . ToString ( ) ) ;
72
+
73
+ Assert . True ( client . Configuration . IncludePrivateInformation ) ;
74
+ Assert . False ( client . Configuration . IncludeUserName ) ;
75
+ Assert . True ( client . Configuration . IncludeMachineName ) ;
76
+ Assert . True ( client . Configuration . IncludeIpAddress ) ;
77
+ Assert . True ( client . Configuration . IncludeCookies ) ;
78
+ Assert . True ( client . Configuration . IncludePostData ) ;
79
+ Assert . True ( client . Configuration . IncludeQueryString ) ;
46
80
}
47
81
48
82
[ Fact ]
0 commit comments