コード例 #1
0
        public MosquittoBrokerMessageServiceTest()
        {
            _initial   = SystemClock.Instance.GetCurrentInstant();
            _clock     = new FakeClock(_initial);
            _dbContext = ApplicationDbContextHelper.BuildTestDbContext(_clock);
            var keyService = new SecureKeySuggestionService();

            _clientAuthService = new MosquittoClientAuthenticationService(keyService);
            var mockPlugin        = new Mock <MosquittoBrokerPluginPidService>();
            var identifierSerivce = new MqttIdentifierService(_clock);

            _deviceService = new DeviceService(_dbContext, identifierSerivce);
            _service       = new MosquittoBrokerMessageService(_clientAuthService, mockPlugin.Object, _deviceService);
        }
コード例 #2
0
        public MosquittoClientAuthenticationServiceTest()
        {
            var suggestion = new SecureKeySuggestionService();

            _service = new MosquittoClientAuthenticationService(suggestion);
        }
コード例 #3
0
 public SecureKeySuggestionServiceTest()
 {
     _service = new SecureKeySuggestionService();
 }