public AllocationService(IAllocationRepository allocationRepository, IParkinglotService parkinglotService, IPersonService personService) { _allocationRepository = allocationRepository; _parkinglotService = parkinglotService; _personService = personService; }
public AllocationServicesTest() { _parkinglotService = Substitute.For <IParkinglotService>(); _personService = Substitute.For <IPersonService>(); _allocationRepository = Substitute.For <IAllocationRepository>(); var name = "test"; var mobilePhone = "000"; var phone = "001"; var street = "street"; var streetnr = "01"; var postalcode = "1234"; var city = "kjhg"; var licenseplate = "123"; var country = "bel"; var mail = "*****@*****.**"; _testPerson = new Person ( 1, name, mobilePhone, phone, new Address { CityName = city, PostalCode = postalcode, StreetName = street, StreetNumber = streetnr }, mail, new LicensePlate(licenseplate, country) ); }
public ParkinglotControllerTest() { _parkinglotMapper = Substitute.For <ParkinglotMapper>(); _parkinglotService = Substitute.For <IParkinglotService>(); _parkinglotController = new ParkinglotsController(_parkinglotMapper, _parkinglotService); }
public ParkinglotsController(ParkinglotMapper parkinglotMapper, IParkinglotService parkinglotService) { _parkinglotMapper = parkinglotMapper; _parkinglotService = parkinglotService; }