public void TestGetOrderByOrderNumber() { var expected = new Order(); this._fakePersistence.Setup(p => p.Find(It.IsAny<IPersistenceSearcher<Order>>())).Returns(expected); var actual = this._target.GetOrder("Something"); Assert.AreEqual(expected, actual); }
public void TestGetOrderByCustomerAndDate() { var expected = new Order(); this._fakePersistence .Setup(p => p.Find(It.IsAny<IPersistenceSearcher<Order>>())) .Returns(expected); var actual = this._target.GetOrder(new Customer(), DateTime.Now); Assert.AreEqual(expected, actual); }