Esempio n. 1
0
        public static T CreateFake <T>(T instance)
        {
            if (!initialized)
            {
                recorder    = new DefaultRecorder(new DefaultStorage());
                initialized = true;
            }

            var fake = A.Fake <T>(x => x.Wrapping(instance).RecordedBy(recorder));

            Fake.GetFakeManager(fake).AddInterceptionListener(recorder);
            return(fake);
        }
Esempio n. 2
0
 public static void SetStore(ICallStorage storage)
 {
     recorder    = new DefaultRecorder(storage);
     initialized = true;
 }