Esempio n. 1
0
 public OrderBusiness(
     IOrderRepository orderRepository,
     IClientBusiness clientBusiness)
 {
     _orderRepository = orderRepository;
     _clientBusiness  = clientBusiness;
 }
 public InsertController(IOwnerBusiness ownerBusiness, ICityBusiness cityBusiness, IApartmentBusiness apartmentBusiness, IClientBusiness clientBusiness)
 {
     this.ownerBusiness     = ownerBusiness;
     this.cityBusiness      = cityBusiness;
     this.apartmentBusiness = apartmentBusiness;
     this.clientBusiness    = clientBusiness;
 }
Esempio n. 3
0
 public ClientsController(
     IClientBusiness clientBusiness,
     ILogger <ClientsController> logger
     )
 {
     this._clientBusiness = clientBusiness;
     this._logger         = logger;
 }
 public AdminController(IOwnerBusiness ownerBusiness, ICityBusiness cityBusiness, IApartmentBusiness apartmentBusiness, IClientBusiness clientBusiness, IMonitoringBusiness monitoringBusiness)
 {
     this.ownerBusiness      = ownerBusiness;
     this.cityBusiness       = cityBusiness;
     this.apartmentBusiness  = apartmentBusiness;
     this.clientBusiness     = clientBusiness;
     this.monitoringBusiness = monitoringBusiness;
 }
Esempio n. 5
0
        public PolicyController(IOptions <ApiConfiguration> apiConfiguration)
        {
            this._apiConfiguration = apiConfiguration.Value;
            Settings settings = ApiHelper.ParseConfigurationToLibrarySettings(this._apiConfiguration);

            this._policyBusiness = new PolicyBusiness(settings);
            this._clientBusiness = new ClientBusiness(settings);
            this._clientBusiness.ConfigureData();
            this._policyBusiness.ConfigureData();
        }
Esempio n. 6
0
        public ClientControllerTest()
        {
            var mockMapper = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new MappingProfile());
            });
            var mapper = mockMapper.CreateMapper();

            _service    = new ClientBusinessTest(mapper);
            _controller = new ClientController(_service);
        }
Esempio n. 7
0
        public void TestInitialize()
        {
            var clientRepositoryMock = new Mock <IClientRepository>();

            Client clientDiego = new Client();

            clientDiego.Document = 98695330;
            clientDiego.Name     = "Diego Barrera";

            Client clientNull = null;

            clientRepositoryMock.Setup(x => x.GetByDocument(98695330)).Returns(clientDiego);
            clientRepositoryMock.Setup(x => x.GetByDocument(123)).Returns(clientNull);

            _clientBusiness = new ClientBusiness(clientRepositoryMock.Object);
        }
Esempio n. 8
0
 public ClientController(IOptions <ApiConfiguration> apiConfiguration)
 {
     this._apiConfiguration = apiConfiguration.Value;
     this._clientBusiness   = new ClientBusiness(ApiHelper.ParseConfigurationToLibrarySettings(this._apiConfiguration));
     this._clientBusiness.ConfigureData();
 }
Esempio n. 9
0
 public ClientController(IClientBusiness bussines)
 {
     _bussines = bussines;
 }
Esempio n. 10
0
 public BookingServices(IBookingBusiness bookingBusiness, IClientBusiness clientBusiness, IRoomBusiness roomBusiness)
 {
     _bookingBusiness = bookingBusiness;
     _clientBusiness  = clientBusiness;
     _roomBusiness    = roomBusiness;
 }
 public ClientController(IClientBusiness business, IMapper mapper)
 {
     _business = business;
     _mapper   = mapper;
 }
Esempio n. 12
0
 public ClientServices(IClientBusiness clientBusiness, IMapper mapper)
 {
     _clientBusiness = clientBusiness;
     _mapper         = mapper;
 }
Esempio n. 13
0
 public ClientController(IConfiguration config, IMapper _mapper, IClientBusiness _clientBusiness)
 {
     mapper         = _mapper;
     clientBusiness = _clientBusiness;
 }
Esempio n. 14
0
 public ClientController(ILogger <ClientController> logger, IClientBusiness clientBusiness)
 {
     _logger         = logger;
     _clientBusiness = clientBusiness;
 }
Esempio n. 15
0
 public ClientServices(IClientBusiness clientBusiness)
 {
     _clientBusiness = clientBusiness;
 }
 public ClientController(IRepositoryEF repo, IClientBusiness client)
 {
     _repo   = repo;
     _client = client;
 }
Esempio n. 17
0
 public ClientController(IClientBusiness clientBusiness)
 {
     _clientBusiness = clientBusiness;
 }
Esempio n. 18
0
 public AuthController(IClientBusiness loginBusiness)
 {
     _loginBusiness = loginBusiness;
 }
Esempio n. 19
0
 public ClientService(IClientBusiness p_ClientBusiness)
 {
     m_ClientBusiness = p_ClientBusiness;
 }