New tests.
[mono.git] / mcs / class / System.Runtime.Caching / Test / Common / PokerChangeMonitor.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Runtime.Caching;
4 using System.Text;
5
6 namespace MonoTests.Common
7 {
8         class PokerChangeMonitor : ChangeMonitor
9         {
10                 List <string> calls;
11                 string uniqueId;
12
13                 public List<string> Calls
14                 {
15                         get
16                         {
17                                 if (calls == null)
18                                         calls = new List<string> ();
19
20                                 return calls;
21                         }
22                 }
23
24                 public override string UniqueId
25                 {
26                         get { return uniqueId; }
27                 }
28
29                 public PokerChangeMonitor ()
30                 {
31                         uniqueId = "UniqueID";
32                         InitializationComplete ();
33                 }
34
35                 public void SignalChange ()
36                 {
37                         OnChanged (null);
38                 }
39
40                 protected override void Dispose (bool disposing)
41                 {
42                         Calls.Add ("Dispose (bool disposing)");
43                 }
44         }
45 }