Exemplo n.º 1
0
 public AllocationService(IAllocationRepository allocationRepository, IParkinglotService parkinglotService,
                          IPersonService personService)
 {
     _allocationRepository = allocationRepository;
     _parkinglotService    = parkinglotService;
     _personService        = personService;
 }
Exemplo n.º 2
0
        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);
 }
Exemplo n.º 4
0
 public ParkinglotsController(ParkinglotMapper parkinglotMapper, IParkinglotService parkinglotService)
 {
     _parkinglotMapper  = parkinglotMapper;
     _parkinglotService = parkinglotService;
 }