public void GitDiffTestsSetup() { injectionHelper.Bind <GitExternalManager>(); injectionHelper.Bind <GitCredentialsManager>(); injectionHelper.Bind <GitLfsHelper>(); injectionHelper.Bind <FileLinesReader>(); injectionHelper.Bind <string>().WithId("repoPath").FromInstance(""); diffWindow = ScriptableObject.CreateInstance <GitDiffWindow>(); diffWindow2 = ScriptableObject.CreateInstance <GitDiffWindow>(); injectionHelper.Inject(diffWindow); injectionHelper.Inject(diffWindow2); diffWindow.Show(); diffWindow2.Show(); }
public void GitDiffTestsSetup() { injectionHelper.Bind <GitExternalManager>(); injectionHelper.Bind <GitCredentialsManager>(); injectionHelper.Bind <GitLfsHelper>(); injectionHelper.Bind <FileLinesReader>(); injectionHelper.Bind <GitConflictsHandler>(); injectionHelper.Bind <GitDiffWindowToolbarRenderer>().AsTransient(); injectionHelper.Bind <GitDiffElementContextFactory>().AsTransient(); injectionHelper.Bind <GitDiffWindowCommitRenderer>().AsTransient(); injectionHelper.Bind <GitDiffWindowDiffElementRenderer>().AsTransient(); diffWindow = ScriptableObject.CreateInstance <GitDiffWindow>(); diffWindow2 = ScriptableObject.CreateInstance <GitDiffWindow>(); injectionHelper.Inject(diffWindow); injectionHelper.Inject(diffWindow2); diffWindow.Show(); diffWindow2.Show(); }