public OrganizationController(UserManager <User> userManager,
                               IConfiguration configuration, IMediatorHandler mediator,
                               INotificationHandler <DomainNotification> notification,
                               IOrganizationAppService organizationAppService) : base(userManager, configuration, mediator, notification)
 {
     _organizationAppService = organizationAppService;
 }
 public OrganizationService(IOrganizationAppService organizationAppService,
                            IOrganizationDomainService organizationDomainService)
 {
     _organizationAppService    = organizationAppService;
     _organizationDomainService = organizationDomainService;
     _applicationEnginee        = new ApplicationEnginee();
 }
        public OrganizationAppServiceTest()
        {
            var mockMediatorHandler    = new Mock <IMediatorHandler>();
            var mockCurrentUserService = new Mock <ICurrentUserService>();
            var mockOrganizationRepo   = new Mock <IRepository <Organization, Guid> >();

            //auto mapper configuration
            var _mockMapper = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new CustomDtoMapper());
            });
            var mapper = _mockMapper.CreateMapper();

            organizations = new List <Organization>
            {
                new Organization {
                    Name = "1. Organizasyon", Id = Guid.NewGuid()
                },
                new Organization {
                    Name = "2. Organizasyon", Id = Guid.NewGuid()
                }
            };
            mockOrganizationRepo.Setup(s => s.GetAll()).Returns(organizations.AsQueryable());


            _organizationAppService = new OrganizationAppService(mockMediatorHandler.Object, mapper,
                                                                 mockCurrentUserService.Object, mockOrganizationRepo.Object);
        }
 public OrganizationDomainService(IOrganizationAppService organizationAppService, IRelationOrganizationEmployeeAppService relationOrganizationEmployeeAppService,
                                  IOrganizationMenuAppService organizationMenuAppService, IOrganizationElementAppService organizationElementAppService)
 {
     _organizationAppService = organizationAppService;
     _relationOrganizationEmployeeAppService = relationOrganizationEmployeeAppService;
     _organizationMenuAppService             = organizationMenuAppService;
     _organizationElementAppService          = organizationElementAppService;
     _applicationEnginee = new ApplicationEnginee();
 }
Esempio n. 5
0
 public BaseManagementData()
     : base("UniCloud.Application.BaseManagementBC.DTO", UniContainer.Resolve<IQueryableUnitOfWork>())
 {
     _userAppService = UniContainer.Resolve<IUserAppService>();
     _functionItemAppService = UniContainer.Resolve<IFunctionItemAppService>();
     _roleAppService = UniContainer.Resolve<IRoleAppService>();
     _organizationAppService = UniContainer.Resolve<IOrganizationAppService>();
     _businessLicenseAppService = UniContainer.Resolve<IBusinessLicenseAppService>();
     _aircraftCabinTypeAppService = UniContainer.Resolve<IAircraftCabinTypeAppService>();
     _xmlSettingAppService = UniContainer.Resolve<IXmlSettingAppService>();
 }
Esempio n. 6
0
 public EmployeeDomainService(IOrganizationAppService organizationAppService, IRoleAppService roleAppService,
                              IRelationOrganizationEmployeeAppService relationOrganizationEmployeeAppService, IRelationEmployeeRoleAppService relationEmployeeRoleAppService,
                              IEmployeeAppService employeeAppService, IOrganizationElementAppService organizationElementAppService, IRoleElementAppService roleElementAppService,
                              IEmployeeElementAppService employeeElementAppService, IOrganizationMenuAppService organizationMenuAppService,
                              IRoleMenuAppService roleMenuAppService, IEmployeeMenuAppService employeeMenuAppService,
                              IModuleElementAppService moduleElementAppService, IMenuAppService menuAppService, IModuleAppService moduleAppService)
 {
     _organizationAppService = organizationAppService;
     _roleAppService         = roleAppService;
     _relationOrganizationEmployeeAppService = relationOrganizationEmployeeAppService;
     _relationEmployeeRoleAppService         = relationEmployeeRoleAppService;
     _employeeAppService            = employeeAppService;
     _organizationElementAppService = organizationElementAppService;
     _roleElementAppService         = roleElementAppService;
     _employeeElementAppService     = employeeElementAppService;
     _organizationMenuAppService    = organizationMenuAppService;
     _roleMenuAppService            = roleMenuAppService;
     _employeeMenuAppService        = employeeMenuAppService;
     _moduleElementAppService       = moduleElementAppService;
     _menuAppService     = menuAppService;
     _moduleAppService   = moduleAppService;
     _applicationEnginee = new ApplicationEnginee();
 }
Esempio n. 7
0
 public OrganizationController(IOrganizationAppService organizationAppService)
 {
     _organizationAppService = organizationAppService;
 }
Esempio n. 8
0
 public OrganizationController(IOrganizationAppService orgAppSvc)
 {
     _orgAppSvc = orgAppSvc;
 }
 public EditModalModel(IOrganizationAppService organizationAppService)
 {
     _organizationAppService = organizationAppService;
 }
Esempio n. 10
0
 public OrganizationController(IOrganizationAppService abpOrganizationAppService)
 {
     _abpOrganizationAppService = abpOrganizationAppService;
 }
Esempio n. 11
0
 public IndexModel(IOrganizationAppService organizationAppService)
 {
     _organizationAppService = organizationAppService;
 }
Esempio n. 12
0
 public UserDataSync()
 {
     _userAppService = UniContainer.Resolve<IUserAppService>();
     _organizationApp = UniContainer.Resolve<IOrganizationAppService>();
 }
Esempio n. 13
0
 public UsersController(IUserAppService _userAppService, IOrganizationAppService _orgAppService)
 {
     userAppService = _userAppService;
     orgAppService  = _orgAppService;
 }
Esempio n. 14
0
 public CreateModalModel(IOrganizationAppService organizationAppService)
 {
     _organizationAppService = organizationAppService;
 }
Esempio n. 15
0
 public OrganizationsController(IOrganizationAppService organizationAppService, IUserAppService userAppService)
 {
     _organizationAppService = organizationAppService;
     _userAppService         = userAppService;
 }
Esempio n. 16
0
 public OrganizationController(IOrganizationAppService _orgAppService)
 {
     orgAppService = _orgAppService;
 }
 public OrganizationAppServiceTests()
 {
     _organizationAppService = GetRequiredService <IOrganizationAppService>();
     _organizationRepository = GetRequiredService <IRepository <Organization, Guid> >();
 }