Beispiel #1
0
        public void DeserializeOpenTabEvent()
        {
            /* GIVEN */
            var deserialized = new OpenTabEvent();

            /* WHEN */
            deserialized.Deserialize(serializedEvent);

            /* THEN */
            TestCommonAttributes(deserialized);
        }
        public async Task HandleAsync(OpenTabEvent message, CancellationToken cancellationToken)
        {
            object tab = message.ViewModel;

            if (!Items.Contains(tab))
            {
                Items.Add(tab);
            }

            await ActivateItemAsync(tab, cancellationToken);
        }