Ejemplo n.º 1
0
        public void Setup()
        {
            this._fakePersistence = new Mock<IPersistenceManager>();
            this._fakePersistence.Setup(p => p.Commit()).Callback(() => { return; });

            this._fakeOrderNumberGenerator = new Mock<IOrderNumberGenerator>();

            this._target = new OrderManager(this._fakePersistence.Object, this._fakeOrderNumberGenerator.Object);
        }
Ejemplo n.º 2
0
 public void Cleanup()
 {
     this._fakePersistence = null;
     this._target = null;
 }