public AdminViewModel(IBirthdayService birthdayService) { this.birthdayService = birthdayService; SaveCommand = new Command(async() => await Save(), () => !string.IsNullOrEmpty(Name)); Today = Birthday = DateTime.Today; ShowButton = true; }
public ParserController(IPlanCalendarSevice planCalendarSevice, IPlanCalendarFactory planCalendarFactory, IBirthdayFactory birthdayFactory, IBirthdayService birthdayService) { _planCalendarSevice = planCalendarSevice; _planCalendarFactory = planCalendarFactory; _birthdayFactory = birthdayFactory; _birthdayService = birthdayService; }
public ApiUsersController(IBirthdayService birthdayService, ISettingsService settingsService, IUsersService userService, MainModel mainModel) { _birthdayService = birthdayService; _settingsService = settingsService; _userService = userService; _mainMode = mainModel; }
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"]); }
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); }
public WallWidgetsController(IMapper mapper, IKudosService kudosService, IPermissionService permissionService, IKudosBasketService kudosBasketService, IBirthdayService birthdayService) { _mapper = mapper; _kudosService = kudosService; _permissionService = permissionService; _kudosBasketService = kudosBasketService; _birthdayService = birthdayService; }
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); }
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(); }
public BirthdayController(IBirthdayService birthdayService) { this.birthdayService = birthdayService ?? throw new ArgumentNullException(nameof(IBirthdayService)); }
public Worker(IBirthdayService birthdayService, ISmsService smsService) { _birthdayService = birthdayService; _smsService = smsService; }
public BirthdayModule(IBirthdayService birthdayService, ILogger <BirthdayModule> logger) { _birthdayService = birthdayService; _logger = logger; }
public BirthdaysViewModel(IBirthdayService birthdayService) { this.birthdayService = birthdayService; }
public BirthdayController(IBirthdayService service) { this.service = service; }
public BirthdaysController(IMapper mapper, IBirthdayService birthdayService) { _mapper = mapper; _birthdayService = birthdayService; }
public ExecuteBdayService(IBirthdayService birthdayService, ISmsService smsService) { _birthdayService = birthdayService; _smsService = smsService; }
public BirthdayController(IBirthdayService birthdayService) { _birthdayService = birthdayService; }