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); }
public void Cleanup() { this._fakePersistence = null; this._target = null; }