Exemplo n.º 1
0
        public void Event_MultiPanel_SettingsModified_Proper_Attachment()
        {
            var gamingPanelSkeleton =
                new GamingPanelSkeleton(GamingPanelVendorEnum.Saitek, GamingPanelEnum.PZ70MultiPanel);
            var multiPanelPZ70 = new MultiPanelPZ70(new HIDSkeleton(gamingPanelSkeleton, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"));

            //MultiPanel
            Assert.True(BIOSEventHandler.OnDcsDataAddressValueEventSubscribed());
            Assert.True(AppEventHandler.OnForwardPanelEventChangedSubscribed());

            //GamingPanel
            Assert.True(AppEventHandler.OnProfileEventSubscribed());
            Assert.True(AppEventHandler.OnSavePanelSettingsSubscribed());
            Assert.True(AppEventHandler.OnSavePanelSettingsJSONSubscribed());
        }
Exemplo n.º 2
0
        public void DCSBIOSConverter_MustBe_Clonable()
        {
            var gamingPanelSkeleton =
                new GamingPanelSkeleton(GamingPanelVendorEnum.Saitek, GamingPanelEnum.PZ70MultiPanel);
            StreamDeckPanel  streamdeckPanel = new StreamDeckPanel(GamingPanelEnum.StreamDeck, new HIDSkeleton(gamingPanelSkeleton, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"), true);
            DCSBIOSConverter source          = new(streamdeckPanel);

            source.ConverterOutputType = EnumConverterOutputType.Image;
            source.BackgroundColor     = _colorValue1;
            source.OffsetX             = _intValue1;

            DCSBIOSConverter cloned = source.CloneJson();

            Assert.NotNull(cloned);
            Assert.Equal(_colorValue1, cloned.BackgroundColor);
            Assert.Equal(EnumConverterOutputType.Image, cloned.ConverterOutputType);
            Assert.Equal(_intValue1, cloned.OffsetX);
        }
Exemplo n.º 3
0
        public void Event_StreamDeck_OnDirtyConfigurations_Proper_Attachment()
        {
            var gamingPanelSkeleton =
                new GamingPanelSkeleton(GamingPanelVendorEnum.Saitek, GamingPanelEnum.PZ70MultiPanel);
            var streamDeckPanel = new StreamDeckPanel(GamingPanelEnum.StreamDeck, new HIDSkeleton(gamingPanelSkeleton, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"), true);

            //GamingPanel
            Assert.True(AppEventHandler.OnProfileEventSubscribed());
            Assert.True(AppEventHandler.OnSavePanelSettingsSubscribed());
            Assert.True(AppEventHandler.OnSavePanelSettingsJSONSubscribed());

            //StreamDeckPanel
            Assert.True(SDEventHandler.OnStreamDeckSyncConfigurationEventSubscribed());
            Assert.True(SDEventHandler.OnDirtyConfigurationsEventHandlerEventSubscribed());
            Assert.True(SDEventHandler.OnDirtyNotificationEventHandlerSubscribed());
            Assert.True(SDEventHandler.OnStreamDeckShowNewLayerEventSubscribed());
            Assert.True(SDEventHandler.OnRemoteStreamDeckShowNewLayerEventSubscribed());
            Assert.True(SDEventHandler.OnStreamDeckSelectedButtonChangedEventSubscribed());
            Assert.True(SDEventHandler.OnStreamDeckClearSettingsEventSubscribed());
        }
Exemplo n.º 4
0
 public HIDSkeleton(GamingPanelSkeleton gamingPanelSkeleton, string instanceId)
 {
     _gamingPanelSkeleton = gamingPanelSkeleton;
     _instanceId          = instanceId;
 }
Exemplo n.º 5
0
 public HIDSkeleton(GamingPanelSkeleton gamingPanelSkeleton, string hidInstance)
 {
     _gamingPanelSkeleton = gamingPanelSkeleton;
     HIDInstance          = hidInstance;
     IsAttached           = true;
 }