Skip to content

Instantly share code, notes, and snippets.

@Hameds
Created November 2, 2017 10:33
Show Gist options
  • Save Hameds/9ac4961d45cbbee46d7df92455ad810b to your computer and use it in GitHub Desktop.
Save Hameds/9ac4961d45cbbee46d7df92455ad810b to your computer and use it in GitHub Desktop.
[TestFixture]
class OrderServiceTests
{
private OrderService _orderService;
private IOrderDataService _orderDataService;
private ICustomerService _customerService;
[TestFixtureSetUp]
public void SetupTestFixture()
{
_orderDataService = Mock.Create<IOrderDataService>();
_customerService = Mock.Create<ICustomerService>();
_orderService = new OrderService(_orderDataService, _customerService);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment