public OrderServiceTest() { _repositoryMock = new Mock <IRepository <Order> >(); _orderValidatorMock = new Mock <IValidatorExtended <Order> >(); _orderLineValidatorMock = new Mock <IValidatorExtended <OrderLine> >(); _orderServiceWithMockValidators = new OrderService(_repositoryMock.Object, _orderValidatorMock.Object, _orderLineValidatorMock.Object); IValidatorExtended <Order> orderValidator = new OrderValidator(); IValidatorExtended <OrderLine> orderLineValidator = new OrderLineValidator(); _orderService = new OrderService(_repositoryMock.Object, orderValidator, orderLineValidator); }
public OrderLineValidatorTest() { _orderLineValidator = new OrderLineValidator(); }