예제 #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);
        }
예제 #2
0
 public static void SetStore(ICallStorage storage)
 {
     recorder    = new DefaultRecorder(storage);
     initialized = true;
 }