/* Construction - Deconstruction */
 public DownloadModsViewModel(AggregateNugetRepository _nugetRepository)
 {
     this._nugetRepository = _nugetRepository;
     DownloadModEntries    = new ObservableCollection <DownloadModEntry>();
     DownloadModCommand    = new DownloadModCommand(this);
     PropertyChanged      += OnSearchQueryChanged;
 }
Beispiel #2
0
 /// <summary>
 /// Creates an instance of an aggregate resolver.
 /// </summary>
 public static IDependencyResolver GetInstance(AggregateNugetRepository repository)
 {
     return(new AggregateDependencyResolver(new IDependencyResolver[]
     {
         new NuGetDependencyResolver(repository),
         new GameBananaDependencyResolver(),
         new GitHubDependencyResolver()
     }));
 }
Beispiel #3
0
 public UpdaterData(AggregateNugetRepository aggregateNugetRepository)
 {
     AggregateNugetRepository = aggregateNugetRepository;
 }
 /// <summary/>
 public NuGetDependencyResolver(AggregateNugetRepository repository)
 {
     _repository = repository;
 }
 public AggregateNuGetRepositoryTests()
 {
     _dependenciesRepository = MakeRedirectorMock();
     _otherModsRepository    = MakeOtherMock();
     _aggregateRepository    = new AggregateNugetRepository(new[] { _dependenciesRepository, _otherModsRepository });
 }
Beispiel #6
0
 public NugetRepositoryResolver(UpdaterData data)
 {
     _nugetRepository = data.AggregateNugetRepository;
 }