public void GetOrderResponses_OrderResponses_ListOfOrderResponsesByOrderId() { var order = _initializer.OrderRepository.GetAll().First(); _initializer.OrderResponseRepository.Create(_initializer.CreateOrderResponse(order)); _initializer.OrderResponseRepository.Create(_initializer.CreateOrderResponse(order)); _initializer.CommitProvider.CommitChanges(); var expected = _initializer.OrderResponseRepository.GetBy(x => x.Order.Id == order.Id).ToList(); var actual = _initializer.OrderService.GetOrderResponses(order.Id).ToList(); CollectionAssert.AreEqual(expected, actual); }