Example #1
0
 public void StartProviderWithOneAddressGetTwoValues()
 {
     var provider = new FakeDataProvider();
     var config = new Dictionary<string, object>();
     config.Add("Addresses", new List<string> {Address});
     provider.DataRecievedEvent += OnDataReceivedEvent;
     provider.Initialize(config);
     Thread.Sleep(TimeSpan.FromSeconds(1));
     Assert.AreEqual(_valuesCount, 2);
 }
Example #2
0
        public void StartProviderWithOneAddressGetTwoValues()
        {
            var provider = new FakeDataProvider();
            var config   = new Dictionary <string, object>();

            config.Add("Addresses", new List <string> {
                Address
            });
            provider.DataRecievedEvent += OnDataReceivedEvent;
            provider.Initialize(config);
            Thread.Sleep(TimeSpan.FromSeconds(1));
            Assert.AreEqual(_valuesCount, 2);
        }