public MessagesProcessor(
     IParticipantsService participantsService,
     IChatsService chatsService)
 {
     this.participantsService = participantsService;
     this.chatsService        = chatsService;
 }
Exemplo n.º 2
0
 public ParticipantsAuthenticationService(ILogger <ParticipantsAuthenticationService> logger,
                                          IParticipantsService participantsService, AuthorisationStore authorisationStore)
 {
     _logger = logger;
     _participantsService = participantsService;
     _authorisationStore  = authorisationStore;
 }
 protected BaseCommand(
     ChatMessage commandMessage,
     IParticipantsService participantsService)
 {
     Message             = commandMessage;
     ParticipantsService = participantsService;
 }
Exemplo n.º 4
0
 public PingCommand(
     ChatMessage commandMessage,
     IParticipantsService participantsService,
     IChatsService chatsService)
     : base(commandMessage, participantsService)
 {
     this.chatsService = chatsService;
 }
Exemplo n.º 5
0
 public QuestionnaireController(ILogger <QuestionnaireController> logger,
                                IParticipantsAuthenticationService participantsAuthenticationService,
                                IParticipantsService participantsService)
 {
     _logger = logger;
     _participantsAuthenticationService = participantsAuthenticationService;
     _participantsService = participantsService;
 }
Exemplo n.º 6
0
 public LoginController(ILogger <AlexaController> logger,
                        IParticipantsAuthenticationService participantsAuthenticationService,
                        IParticipantsService participantsService)
 {
     _logger = logger;
     _participantsAuthenticationService = participantsAuthenticationService;
     _participantsService = participantsService;
 }
Exemplo n.º 7
0
 public AlexaController(ILogger <AlexaController> logger, IConfiguration configuration,
                        IParticipantsService participantsService,
                        IParticipantsAuthenticationService participantsAuthenticationService)
 {
     _logger              = logger;
     _configuration       = configuration;
     _participantsService = participantsService;
     _participantsAuthenticationService = participantsAuthenticationService;
 }
Exemplo n.º 8
0
 public static string Replace(IParticipantsService participantsService, string responseStr)
 {
     if (responseStr.Contains("{{participants}}"))
     {
         string participantsHTML = HTMLView(participantsService);
         responseStr = responseStr.Replace("{{participants}}", participantsHTML);
     }
     return(responseStr);
 }
Exemplo n.º 9
0
        public static string HTMLView(IParticipantsService participantsService)
        {
            string             HTML             = "";
            List <Participant> listParticipants = participantsService.ListAttendent();

            foreach (Participant p in listParticipants)
            {
                HTML = HTML + "<li>" + p.Name + "</li>";
            }
            return(HTML);
        }
        public ParticipantsServiceTests()
        {
            var unitOfWorkMock          = new Mock <IUnitOfWork>();
            var participantsUpdatedMock = new Mock <IParticipantsUpdated>();

            _eventRepositoryMock       = new Mock <IRepository <Event> >();
            _participantRepositoryMock = new Mock <IRepository <Participant> >();
            _accountsServiceMock       = new Mock <IAccountsService>();

            unitOfWorkMock.Setup(x => x.Events).Returns(_eventRepositoryMock.Object);
            unitOfWorkMock.Setup(x => x.Participants).Returns(_participantRepositoryMock.Object);

            _participantsService = new ParticipantsService(participantsUpdatedMock.Object, unitOfWorkMock.Object, _accountsServiceMock.Object);
        }
Exemplo n.º 11
0
        public Server(string URI)
        {
            ReadSettings();
            container.Register();
            participantsService = container.Resolve(typeof(IParticipantsService)) as IParticipantsService;
            logger   = container.Resolve(typeof(ILogger)) as ILogger;
            listener = new HttpListener();
            listener.Prefixes.Add(URI);

            try
            {
                listener.Start();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Exemplo n.º 12
0
 public GetParticipantsCountCommand(
     ChatMessage commandMessage,
     IParticipantsService participantsService)
     : base(commandMessage, participantsService)
 {
 }
Exemplo n.º 13
0
 public ParticipantsController(IParticipantsService participantsService, ILogger logger, DateTime dateModificat) : base(participantsService, logger)
 {
     DateModificat = dateModificat;
 }
 public IndexController(IParticipantsService participantsService, ILogger logger) : base(participantsService, logger)
 {
 }
 public PartyParticipantViewModel(IParticipantsService participantService, IPartiesService partiesService, int partyId)
 {
     Party        = partiesService.List().SingleOrDefault(x => x.Id == partyId);
     Participants = participantService.ListAttended(partyId);
 }
 protected BaseController(IParticipantsService participantsService, ILogger logger)
 {
     ParticipantsService = participantsService;
     Logger          = logger;
     ServerDirectory = Program.serverDirectory;
 }
Exemplo n.º 17
0
 public ParticipantListPageModel(IParticipantsService participantsService)
 {
     this._participantsService = participantsService;
 }
Exemplo n.º 18
0
 public VoteController(IParticipantsService service, ILogger logger) : base(logger)
 {
     Service = service;
 }
 public NewGameCommand(
     ChatMessage commandMessage,
     IParticipantsService participantsService)
     : base(commandMessage, participantsService)
 {
 }
 public TransactionsService(IParticipantsService participantsService)
 {
     _participantsService = participantsService;
 }
Exemplo n.º 21
0
 public SetParticipantsGroupStateCommand(
     ChatMessage commandMessage,
     IParticipantsService participantsService)
     : base(commandMessage, participantsService)
 {
 }
Exemplo n.º 22
0
 public ParticipantsController(IParticipantsService service, ILogger logger)
     : base(service, logger)
 {
 }
Exemplo n.º 23
0
 public HomeController(IParticipantsService participantsService)
 {
     _participantsService = participantsService;
 }
Exemplo n.º 24
0
 public PartiesService(IPartiesRepository repository, IParticipantsService participantService)
 {
     Repository         = repository;
     ParticipantService = participantService;
 }
Exemplo n.º 25
0
 public PartyController(IParticipantsService participantsService, IPartiesService partiesService)
 {
     _partiesService      = partiesService;
     _participantsService = participantsService;
 }
Exemplo n.º 26
0
 protected BaseController(IParticipantsService service, ILogger logger)
 {
     Service = service;
     Logger  = logger;
 }
Exemplo n.º 27
0
 public ParticipantsController(IParticipantsService service, ILogger logger) : base(logger)
 {
     Service = service;
     Logger  = logger;
 }
Exemplo n.º 28
0
 public ParticipantsController(IParticipantsService service, ILogger logger)
 {
     _service = (ParticipantsService)service;
     _logger  = (Logger)logger;
 }
Exemplo n.º 29
0
 public ParticipantsController(IParticipantsService participantsService)
 {
     this._participantsService = participantsService;
 }