示例#1
0
 public ReceiveImageDialog(ITeamWebService teamWebService,
                           //IActionWebService
                           ITelegramBotClient telegramBotClient,
                           ILogger <ReceiveImageDialog> logger) : base(logger)
 {
     _teamWebService    = teamWebService;
     _telegramBotClient = telegramBotClient;
 }
示例#2
0
 public InitDialogTest()
 {
     _logger = A.Fake <ILogger <InitDialog> >();
     _testContainerBuilder.RegisterInstance(_logger).As <ILogger <InitDialog> >();
     _testContainerBuilder.RegisterType <InitDialog>().As <IInitDialog>();
     _gameWebService = A.Fake <IGameWebService>();
     _testContainerBuilder.RegisterInstance(_gameWebService);
     _teamWebService = A.Fake <ITeamWebService>();
     _testContainerBuilder.RegisterInstance(_teamWebService);
     _container = _testContainerBuilder.Build();
     _target    = _container.Resolve <IInitDialog>();
 }
示例#3
0
        public ReceiveImageDialogTest()
        {
            _testContainerBuilder.RegisterType <ReceiveImageDialog>();
            _logger = A.Fake <ILogger <ReceiveImageDialog> >();
            _testContainerBuilder.RegisterInstance(_logger).As <ILogger <ReceiveImageDialog> >();
            _teamWebService    = A.Fake <ITeamWebService>();
            _telegramBotClient = A.Fake <ITelegramBotClient>();
            _testContainerBuilder.RegisterInstance(_telegramBotClient).As <ITelegramBotClient>();

            _testContainerBuilder.RegisterInstance(_teamWebService).As <ITeamWebService>();
            _container = _testContainerBuilder.Build();
            _target    = _container.Resolve <ReceiveImageDialog>();
        }
示例#4
0
 public ReceiveDocumentDialog(ITeamWebService teamWebService, ITelegramBotClient telegramBotClient, ILogger <ReceiveDocumentDialog> logger) : base(logger)
 {
     _teamWebService    = teamWebService;
     _telegramBotClient = telegramBotClient;
 }
示例#5
0
 public InitDialog(IGameWebService gameWebService, ITeamWebService teamWebService, ILogger <InitDialog> logger) : base(logger)
 {
     _gameWebService = gameWebService;
     _teamWebService = teamWebService;
 }