Esempio n. 1
0
        public void ShouldAlwaysMapInstallToConfiguration()
        {
            var @event = new InstallEvent
            {
                PluginVersion = ""
            };

            AssertMapsToActivity(@event, Activity.LocalConfiguration);
        }
Esempio n. 2
0
        public void ShouldSerializeToString()
        {
            var installEvent = new InstallEvent
            {
                PluginVersion = "SomeVersion"
            };
            const string expected =
                "{\"$type\":\"KaVE.Commons.Model.Events.VisualStudio.InstallEvent, KaVE.Commons\",\"PluginVersion\":\"SomeVersion\",\"TriggeredBy\":0}";

            JsonAssert.SerializesTo(installEvent, expected);
        }
Esempio n. 3
0
 private void OnInstallRequest(InstallEventArgs e)
 {
     InstallEvent?.Invoke(this, e);
 }