Beispiel #1
0
        private Spy(MethodInfo method, object key)
        {
            Method = method;
            Key    = key;

            // setup up spy to only return a default value forever
            var defaultBehaviour = new DefaultBehaviour();

            defaultBehaviour.UpdateLifetime(int.MaxValue);
            Behaviours.Enqueue(defaultBehaviour);
        }