Ejemplo n.º 1
0
        public void CtorShouldSetProperties()
        {
            var testData = new byte[1];
            var evtArgs  = new ContextNotificationEventArgs("Hi!", testData);

            Assert.Equal("Hi!", evtArgs.Message);
            Assert.Equal(testData, evtArgs.PrivateData);
        }
Ejemplo n.º 2
0
        private static void CtxOnNotification(object sender, ContextNotificationEventArgs e)
        {
            var ctx = (Context)sender;

            System.Console.WriteLine($"ERROR: {ctx.Id} - {e.Message}");
        }