Example #1
0
 public AuthController(UserAppService _userAppService, AccessControlAppService _accessControlAppService, UploadAppService _uploadAppService
                       , NotificationAppService _notificationAppService, BranchAppService _branchAppService)
 {
     userAppService         = _userAppService;
     accessControl          = _accessControlAppService;
     uploadAppService       = _uploadAppService;
     notificationAppService = _notificationAppService;
     branchAppService       = _branchAppService;
 }
 public UserAppService(UserService userService, ITransactionManager transactionManager, IMapper mapper, NotificationAppService notificationAppService,
                       BranchService branchService, RoleService roleService)
 {
     _userService            = userService;
     _notificationAppService = notificationAppService;
     _branchService          = branchService;
     _roleService            = roleService;
     _mapper             = mapper;
     _transactionManager = transactionManager;
 }
 public CustomerAppService(CustomerService customerService, ITransactionManager transactionManager, UserAppService userAppService, UserService userService,
                           IMapper mapper, ZoneService zoneService, NotificationAppService notificationAppService, BranchService branchService)
 {
     _customerService        = customerService;
     _userService            = userService;
     _notificationAppService = notificationAppService;
     _mapper             = mapper;
     _userAppService     = userAppService;
     _transactionManager = transactionManager;
     _zoneService        = zoneService;
     _branchService      = branchService;
 }
 public PropertyAppointmentAppServiceTests()
 {
     this.subRepositoryPropertyAppointment         = Resolve <IRepository <Core.Models.PropertyAppointment> >();
     this.subNotificationAppService                = Resolve <NotificationAppService>();
     this.subHttpContextAccessor                   = Resolve <IHttpContextAccessor>();
     this.subRepositoryAgentProfileLong            = Resolve <IRepository <AgentProfile, long> >();
     this.subRepositoryAgentCompanyBranch          = Resolve <IRepository <AgentCompanyBranch> >();
     this.subRepositoryAgentCompany                = Resolve <IRepository <AgentCompany> >();
     this.subRepositoryPropertyAppointmentSchedule = Resolve <IRepository <Core.Models.PropertyAppointmentSchedule> >();
     this.subLogger        = Resolve <ILogger <PropertyAppointmentAppService> >();
     this.subConfiguration = Resolve <IConfiguration>();
     this.subRepositoryAgentFlatSimpleConsolidateViewLong = Resolve <IRepository <Core.Models.View.AgentFlatSimpleConsolidateView, long> >();
     this.subPropertyAppointmentManager = Resolve <IPropertyAppointmentManager>();
 }
Example #5
0
        public NotificationAppServiceTest()
        {
            var db = new DbContextOptionsBuilder <AppDbContext>()
                     .UseInMemoryDatabase(databaseName: "TestingDB")
                     .Options;

            _genericCommandRepository = new Mock <IGenericCommandRepository>();
            _cache                 = new Mock <IMemoryCache>();
            _idmProxy              = new Mock <IIDMProxy>();
            _iNotificationQuerie   = new Mock <INotificationQueries>();
            _notifayCommands       = new Mock <IINotificationCommands>();
            _logger                = new Mock <ILogger <NotificationAppService> >();
            _branchQuery           = new Mock <IBranchServiceQueries>();
            _committeeQueries      = new Mock <ICommitteeQueries>();
            _notificationProxy     = new Mock <INotificationProxy>();
            _rootConfigurationMock = new Mock <IOptionsSnapshot <RootConfigurations> >();
            _rootConfigurationMock.Setup(x => x.Value).Returns(new RootConfigurationDefaults().DefaultRootConfigurationsForCachingInformation());
            _mapper                   = new Mock <IMapper>();
            _httpContext              = new Mock <IHttpContextAccessor>();
            _moqAppDbContext          = new AppDbContext(db, _httpContext.Object);
            _genericCommandRepository = new Mock <IGenericCommandRepository>();
            _sut = new NotificationAppService(_notificationProxy.Object, _idmProxy.Object, _cache.Object, _iNotificationQuerie.Object,
                                              _notifayCommands.Object, _genericCommandRepository.Object, _logger.Object, _mapper.Object, _branchQuery.Object, _committeeQueries.Object, _httpContext.Object, _rootConfigurationMock.Object);
        }
 public MessageController(IHubContext <NotificationAppService> hub, NotificationAppService _notificationAppService)
 {
     _hub = hub;
     notificationAppService = _notificationAppService;
 }