public OldEventLogAutoResubmitter([NotNull] IMessageBus messageBus, // Dependency on EventLogger is necessary to make sure it has already been // created and is subscribed to the message bus. // ReSharper disable once UnusedParameter.Local [NotNull] EventLogger eventLogger, [NotNull] ILogger logger, [NotNull] FeedBaGVersionUtil versionUtil) { var pathInRoaming = Path.Combine( IDEEventLogFileManager.AppDataPath, IDEEventLogFileManager.ProjectName, "KaVE.VS.FeedbackGenerator", versionUtil.GetVariant().ToString()); var pathWithDefaultVariant = Path.Combine( IDEEventLogFileManager.LocalAppDataPath, IDEEventLogFileManager.ProjectName, "KaVE.VS.FeedbackGenerator", "Default"); var paths = new List <string> { pathInRoaming }; if (versionUtil.GetVariant() == Variant.Release) { paths.Add(pathWithDefaultVariant); } Task.Factory.StartNew(() => Execute(paths, messageBus, logger)); }
public void GetVariant() { var actual = _sut.GetVariant(); Assert.AreEqual(Variant.Experimental, actual); }
public IDEEventLogFileManager(FeedBaGVersionUtil versionUtil) : base(Path.Combine(EventLogsPath, versionUtil.GetVariant().ToString())) { }
public void GetVariant() { var actual = _sut.GetVariant(); Assert.AreEqual(Variant.Development, actual); }