public void ShouldAlwaysMapInstallToConfiguration() { var @event = new InstallEvent { PluginVersion = "" }; AssertMapsToActivity(@event, Activity.LocalConfiguration); }
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); }
private void OnInstallRequest(InstallEventArgs e) { InstallEvent?.Invoke(this, e); }