public void BeforeEach() { _fixture = new Fixture(); _inspectionLookup = Mock.Of<IVehicleInspectionLookup>(x => x.ByRegistration(It.IsAny<RegistrationNumber>()) == _fixture.CreateAnonymous<Vehicle>() && x.ByVehicleIdentificationNumber(It.IsAny<VehicleIdentificationNumber>()) == _fixture.CreateAnonymous<Vehicle>()); _sut = new VehicleInspectionService(_inspectionLookup); }
public VehicleInspectionService(IVehicleInspectionLookup lookup) { _lookup = lookup; }