Exemplo n.º 1
0
 public CacheTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper, true)
 {
     // Add SvgBitmapHttpContentConverter if it was not yet added
     if (HttpExtensionsGlobals.HttpContentConverters.All(x => x.GetType() != typeof(SvgBitmapHttpContentConverter)))
     {
         HttpExtensionsGlobals.HttpContentConverters.Add(SvgBitmapHttpContentConverter.Instance.Value);
     }
     // Add BitmapHttpContentConverter if it was not yet added
     if (HttpExtensionsGlobals.HttpContentConverters.All(x => x.GetType() != typeof(BitmapHttpContentConverter)))
     {
         HttpExtensionsGlobals.HttpContentConverters.Add(BitmapHttpContentConverter.Instance.Value);
     }
     // Add BitmapSourceHttpContentConverter if it was not yet added
     if (HttpExtensionsGlobals.HttpContentConverters.All(x => x.GetType() != typeof(BitmapSourceHttpContentConverter)))
     {
         HttpExtensionsGlobals.HttpContentConverters.Add(BitmapSourceHttpContentConverter.Instance.Value);
     }
     _avatarCache = new AvatarCache(Client);
 }
Exemplo n.º 2
0
 public CacheTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper, true)
 {
     _avatarCache = new AvatarCache(Client);
 }
Exemplo n.º 3
0
 public JiraCacheTests(ITestOutputHelper testOutputHelper)
 {
     LogSettings.RegisterDefaultLogger <XUnitLogger>(LogLevels.Verbose, testOutputHelper);
     _jiraApi     = new JiraApi(TestJiraUri);
     _avatarCache = new AvatarCache(_jiraApi);
 }