public WhenLoadingGlimpsePackagesFromRepository() { string jsonFile = Path.Combine(Environment.CurrentDirectory, "packages.json"); var packageRepository = new PackageRepository(jsonFile); _packages = packageRepository.GetAllPackages().ToList(); _package = _packages.FirstOrDefault(); }
public WhenCallingPackageIssueService() { _packageRepository = new Mock<IPackageRepository>(); _issueRepository = new Mock<IIssueRepository>(); _milestoneService = new Mock<IGithubMilestoneService>(); _issueService = new PackageIssueProvider(_packageRepository.Object, _issueRepository.Object, _milestoneService.Object); _issueBuilder = new IssueBuilder(); _packageBuilder = new PackageBuilder(); _glimpseCorePackage = _packageBuilder .WithTag("Glimpse Core") .Build(); StubPackages(_glimpseCorePackage); }