Exemplo n.º 1
0
 public ComponentServiceController(
     IContext context,
     IServiceTypeService serviceTypeService
     ) : base(context)
 {
     this.serviceTypeService = serviceTypeService;
 }
Exemplo n.º 2
0
 public ToDictDataUpdate(IAttractionPlaceTypeService attractionPlaceTypeService,
                         IPlaceTypeService placeTypeService,
                         IAgeTypeService ageTypeService,
                         ICateringTypeService cateringTypeService,
                         ICityService cityService,
                         ICuisineTypeService cuisineTypeService,
                         IDenyTypeService denyTypeService,
                         IDistrictService districtTypeService,
                         IEquipmentTypeService equipmentTypeService,
                         IHousingTypeService housingTypeService,
                         IPeopleTypeService peopleTypeService,
                         IServiceTypeService serviceTypeService,
                         ISubjectNameService subjectNameService,
                         ISubjectService subjectService,
                         ISubjectTypeService subjectTypeService,
                         IConfiguration configuration)
 {
     _attractionPlaceTypeService = attractionPlaceTypeService;
     _placeTypeService           = placeTypeService;
     _ageTypeService             = ageTypeService;
     _cateringTypeService        = cateringTypeService;
     _cityService          = cityService;
     _cuisineTypeService   = cuisineTypeService;
     _denyTypeService      = denyTypeService;
     _districtTypeService  = districtTypeService;
     _equipmentTypeService = equipmentTypeService;
     _housingTypeService   = housingTypeService;
     _peopleTypeService    = peopleTypeService;
     _serviceTypeService   = serviceTypeService;
     _subjectNameService   = subjectNameService;
     _subjectService       = subjectService;
     _subjectTypeService   = subjectTypeService;
     _configuration        = configuration;
 }
Exemplo n.º 3
0
        public ServiceTypeController()
        {
            const string connectionString = @"server=192.168.11.70\SQLEXPRESS,1433;database=abraham;uid=sa;password=toto;Application Name=Homer";

            _repository = new ServiceTypeRepository(connectionString);
            _service    = new ServiceTypeService(_repository);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public ServiceTypeController(IServiceTypeService serviceTypeService)
 {
     if (serviceTypeService == null)
     {
         throw new ArgumentNullException("serviceTypeService");
     }
     this.serviceTypeService = serviceTypeService;
 }
Exemplo n.º 5
0
        public void ServiceTypeServiceDescriptionExistsIsTrue()
        {
            A.CallTo(() => _repository.DescriptionExists(string.Empty)).WithAnyArguments().Returns(true);
            _service = new ServiceTypeService(_repository);

            var retour = _service.DescriptionExists("toto");

            Assert.AreEqual(true, retour);
        }
Exemplo n.º 6
0
        public void ServiceTypeServiceAddAreEqual()
        {
            A.CallTo(() => _repository.Add(null)).WithAnyArguments().Returns(42);
            _service = new ServiceTypeService(_repository);

            var newId = _service.Add(new Business.DTOs.ServiceType());

            Assert.AreEqual(42, newId);
        }
Exemplo n.º 7
0
 public StoreController(IStoreService storeService, IAccountService accountService, IOrderSService orderSService, IOrderService orderService, IServiceTypeService serviceTypeService, IServiceService serviceService, ICustomerService customerService)
 {
     _storeService       = storeService;
     _accountService     = accountService;
     _orderSService      = orderSService;
     _orderService       = orderService;
     _serviceTypeService = serviceTypeService;
     _serviceService     = serviceService;
     _customerService    = customerService;
 }
Exemplo n.º 8
0
        public void ServiceTypeServiceGetAreEqual()
        {
            Data.Models.ServiceType retourRepositiry = new Data.Models.ServiceType()
            {
                Id = 42, Description = "toto"
            };
            Business.DTOs.ServiceType retourService = new Business.DTOs.ServiceType()
            {
                Id = 42, Description = "toto"
            };

            A.CallTo(() => _repository.Get(0)).WithAnyArguments().Returns(retourRepositiry);
            _service = new ServiceTypeService(_repository);

            var serviceType = _service.Get(42);

            Assert.AreEqual(retourService.Id, serviceType.Id);
            Assert.AreEqual(retourService.Description, serviceType.Description);
        }
Exemplo n.º 9
0
 public ServiceTypeController()
 {
     _ServiceTypeService = new ServiceTypeService();
 }
Exemplo n.º 10
0
 public ServiceTypeController(IServiceTypeService service)
 {
     _service = service;
 }
Exemplo n.º 11
0
 public ServiceTypesController(IServiceTypeService serviceTypeService, IAttributeSpecificationService attributeSpecificationService, IEventServiceModelService eventServiceModelService)
 {
     _serviceTypeService            = serviceTypeService;
     _attributeSpecificationService = attributeSpecificationService;
     _eventServiceModelService      = eventServiceModelService;
 }
 public ServiceTypeController(IServiceTypeService service, IMapper mapper, IPagingSupport <ServiceType> pagingSupport)
 {
     _service       = service;
     _mapper        = mapper;
     _pagingSupport = pagingSupport;
 }
 public ServiceTypeController(IServiceTypeService serviceTypeService) =>
Exemplo n.º 14
0
 public VolunteerController(IGuestInfoServiceTypeService _guestInfoServiceTypeService, IGuestInfoService _guestInfoService, IServiceTypeService _serviceTypeService)
 {
     guestInfoServiceTypeService = _guestInfoServiceTypeService;
     guestInfoService            = _guestInfoService;
     serviceTypeService          = _serviceTypeService;
 }
 public ServiceTypeController(IMapper mapper, IServiceTypeService service, IUserContext userContext)
 {
     _mapper  = mapper;
     _service = service;
     _user    = userContext;
 }
Exemplo n.º 16
0
 public TestController(IMailManagementService mail, IServiceTypeService types, IServiceProviderService provider)
 {
     _provider = provider;
     _mail = mail;
     _types = types;
 }
Exemplo n.º 17
0
 public ServiceController(IServiceService serviceService, IServiceTypeService serviceTypeService, IStoreService storeService)
 {
     _serviceService     = serviceService;
     _serviceTypeService = serviceTypeService;
     _storeService       = storeService;
 }
 public ServiceTypeRepository(IMapper mapper, IServiceTypeService serviceType)
 {
     _mapper      = mapper;
     _serviceType = serviceType;
 }
 public ServiceTypeController(IServiceTypeService serviceTypeService)
 {
     _serviceTypeService = serviceTypeService;
 }