예제 #1
0
        public async Task ShouldSynchNewDataFromRemote()
        {
            // First just make a channel that we can call synch on.
            await ChannelUnderTest.Synchronize();

/*            var synched1 = localEndpoint.Read(1);
 *          Assert.IsNotNull(synched1);
 *          Assert.AreEqual(TestData.RemoteResults[0].Name, synched1.Name);
 *
 *          Assert.IsNull(localEndpoint.Read(2));*/

            var synched3 = LocalEndpoint.Read(3);

            Assert.IsNotNull(synched3);
            Assert.AreEqual(TestData.RemoteResults[1].Name, synched3.Name);
        }