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

            AssertMapsToActivity(@event, Activity.LocalConfiguration);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
 private void OnInstallRequest(InstallEventArgs e)
 {
     InstallEvent?.Invoke(this, e);
 }