コード例 #1
0
        public void Setup()
        {
            this._fakePersistence = new Mock<IPersistenceManager>();
            this._fakePersistence.Setup(p => p.Commit()).Callback(() => { return; });

            this._target = new CustomerManager(this._fakePersistence.Object);
        }
コード例 #2
0
 public void Cleanup()
 {
     this._fakePersistence = null;
     this._target = null;
 }