Esempio n. 1
0
 public AllocationService(IAllocationRepository allocationRepository, IParkinglotService parkinglotService,
                          IPersonService personService)
 {
     _allocationRepository = allocationRepository;
     _parkinglotService    = parkinglotService;
     _personService        = personService;
 }
 public AllocationService(
     IAllocationRepository allocationRepository,
     IMapper mapper)
     : base(mapper)
 {
     _allocationRepository = allocationRepository;
 }
Esempio n. 3
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)
                          );
        }
Esempio n. 4
0
 public Handler
     (IBudgetCategoryRepository budgetCategoryRepository,
     IAllocationRepository allocationRepository,
     IMapper mapper,
     IAuthenticationProvider authenticationProvider) : base(budgetCategoryRepository, allocationRepository, mapper, authenticationProvider)
 {
 }
 public AllocateCollaborator(ICollaboratorRepository collaboratorRepository,
                             IWorkRepository workRepository,
                             ICreateCollaborator createCollaborator,
                             IAllocationRepository allocationRepository)
 {
     this.collaboratorRepository = collaboratorRepository;
     this.workRepository         = workRepository;
     this.allocationRepository   = allocationRepository;
     this.createCollaborator     = createCollaborator;
 }
Esempio n. 6
0
 public WeeklySummary(
     IAllocationRepository allocationRepository,
     IDateCalculator dateCalculator,
     IEmailRepository emailRepository,
     IRequestRepository requestRepository)
 {
     this.allocationRepository = allocationRepository;
     this.dateCalculator       = dateCalculator;
     this.emailRepository      = emailRepository;
     this.requestRepository    = requestRepository;
 }
 public BaseAllocationHandler
     (IBudgetCategoryRepository budgetCategoryRepository,
     IAllocationRepository allocationRepository,
     IMapper mapper,
     IAuthenticationProvider authenticationProvider)
 {
     BudgetCategoryRepository = budgetCategoryRepository;
     AllocationRepository     = allocationRepository;
     Mapper = mapper;
     AuthenticationProvider = authenticationProvider;
 }
Esempio n. 8
0
 public SummaryModel(
     IDateCalculator dateCalculator,
     IRequestRepository requestRepository,
     IAllocationRepository allocationRepository,
     UserManager <ApplicationUser> userManager)
 {
     this.dateCalculator       = dateCalculator;
     this.requestRepository    = requestRepository;
     this.allocationRepository = allocationRepository;
     this.userManager          = userManager;
 }
 public AllocationCreator(
     IRequestRepository requestRepository,
     IReservationRepository reservationRepository,
     IAllocationRepository allocationRepository,
     ISystemParameterListRepository systemParameterListRepository,
     IDateCalculator dateCalculator,
     ISingleDayAllocationCreator singleDayAllocationCreator)
 {
     this.requestRepository             = requestRepository;
     this.reservationRepository         = reservationRepository;
     this.allocationRepository          = allocationRepository;
     this.systemParameterListRepository = systemParameterListRepository;
     this.dateCalculator             = dateCalculator;
     this.singleDayAllocationCreator = singleDayAllocationCreator;
 }
Esempio n. 10
0
 public AllocationService(IAllocationRepository repository)
 {
     _repository = repository;
 }
Esempio n. 11
0
 public void Setup()
 {
     BaseSQLTest.SeedDatabase();
     _repository = new AllocationRepository();
     _service    = new AllocationService(_repository);
 }
Esempio n. 12
0
 public Handler
     (IAllocationRepository allocationRepository,
     IMapper mapper,
     IAuthenticationProvider authenticationProvider) : base(null, allocationRepository, mapper, authenticationProvider)
 {
 }