public AdminViewModel(IBirthdayService birthdayService)
 {
     this.birthdayService = birthdayService;
     SaveCommand          = new Command(async() => await Save(), () => !string.IsNullOrEmpty(Name));
     Today      = Birthday = DateTime.Today;
     ShowButton = true;
 }
Ejemplo n.º 2
0
 public ParserController(IPlanCalendarSevice planCalendarSevice, IPlanCalendarFactory planCalendarFactory, IBirthdayFactory birthdayFactory, IBirthdayService birthdayService)
 {
     _planCalendarSevice  = planCalendarSevice;
     _planCalendarFactory = planCalendarFactory;
     _birthdayFactory     = birthdayFactory;
     _birthdayService     = birthdayService;
 }
Ejemplo n.º 3
0
 public ApiUsersController(IBirthdayService birthdayService, ISettingsService settingsService, IUsersService userService, MainModel mainModel)
 {
     _birthdayService = birthdayService;
     _settingsService = settingsService;
     _userService     = userService;
     _mainMode        = mainModel;
 }
Ejemplo n.º 4
0
 public BirthdayJob(DiscordSocketClient client, IConfiguration configuration, IBirthdayService birthdayService, ILogger <BirthdayJob> logger)
 {
     _client          = client;
     _configuration   = configuration;
     _birthdayService = birthdayService;
     _logger          = logger;
     _birthdayRoleId  = Convert.ToUInt64(_configuration["Discord:BirthdayRole"]);
 }
Ejemplo n.º 5
0
        public void TestInitializer()
        {
            var uow = Substitute.For <IUnitOfWork2>();

            uow.MockDbSet(MockUsers());

            var roleService = Substitute.For <IRoleService>();

            roleService.ExcludeUsersWithRole(Roles.NewUser).Returns(x => true);

            _birthdayService = new BirthdayService(uow, roleService);
        }
Ejemplo n.º 6
0
 public WallWidgetsController(IMapper mapper,
                              IKudosService kudosService,
                              IPermissionService permissionService,
                              IKudosBasketService kudosBasketService,
                              IBirthdayService birthdayService)
 {
     _mapper             = mapper;
     _kudosService       = kudosService;
     _permissionService  = permissionService;
     _kudosBasketService = kudosBasketService;
     _birthdayService    = birthdayService;
 }
Ejemplo n.º 7
0
        public void TestInitializer()
        {
            var uow = Substitute.For <IUnitOfWork2>();

            uow.MockDbSetForAsync(MockUsers());

            var roleService = Substitute.For <IRoleService>();

            var newRoleId = Guid.NewGuid().ToString();

            roleService.GetRoleIdByNameAsync(Roles.NewUser).Returns(newRoleId);
            roleService.ExcludeUsersWithRole(newRoleId).ReturnsForAnyArgs(x => true);

            _birthdayService = new BirthdayService(uow, roleService);
        }
Ejemplo n.º 8
0
        public BotService(
            IToastService toastService,
            IWaterService waterService,
            IQuoteService quoteService,
            IObsceneService obsceneService,
            IBirthdayService birthdayService
            )
        {
            _toastService    = toastService;
            _messageLogger   = LogManager.GetLogger("message");
            _exceptionLogger = LogManager.GetCurrentClassLogger();
            _waterService    = waterService;
            _quoteService    = quoteService;
            _obsceneService  = obsceneService;
            _birthdayService = birthdayService;

            _random = new Random();
        }
Ejemplo n.º 9
0
 public BirthdayController(IBirthdayService birthdayService)
 {
     this.birthdayService = birthdayService ?? throw new ArgumentNullException(nameof(IBirthdayService));
 }
Ejemplo n.º 10
0
 public Worker(IBirthdayService birthdayService, ISmsService smsService)
 {
     _birthdayService = birthdayService;
     _smsService      = smsService;
 }
Ejemplo n.º 11
0
 public BirthdayModule(IBirthdayService birthdayService, ILogger <BirthdayModule> logger)
 {
     _birthdayService = birthdayService;
     _logger          = logger;
 }
Ejemplo n.º 12
0
 public BirthdaysViewModel(IBirthdayService birthdayService)
 {
     this.birthdayService = birthdayService;
 }
 public BirthdayController(IBirthdayService service)
 {
     this.service = service;
 }
Ejemplo n.º 14
0
 public BirthdaysController(IMapper mapper, IBirthdayService birthdayService)
 {
     _mapper          = mapper;
     _birthdayService = birthdayService;
 }
 public ExecuteBdayService(IBirthdayService birthdayService, ISmsService smsService)
 {
     _birthdayService = birthdayService;
     _smsService      = smsService;
 }
Ejemplo n.º 16
0
 public BirthdayController(IBirthdayService birthdayService)
 {
     _birthdayService = birthdayService;
 }