public DisplayPackageViewModel Setup(
     DisplayPackageViewModel viewModel,
     Package package,
     User currentUser,
     PackageDeprecation deprecation,
     string readMeHtml)
 {
     _listPackageItemViewModelFactory.Setup(viewModel, package, currentUser);
     SetupCommon(viewModel, package, pushedBy: null);
     return(SetupInternal(viewModel, package, currentUser, deprecation, readMeHtml));
 }
Ejemplo n.º 2
0
 public DisplayPackageViewModel Setup(
     DisplayPackageViewModel viewModel,
     Package package,
     IReadOnlyCollection <Package> allVersions,
     User currentUser,
     IReadOnlyDictionary <int, PackageDeprecation> packageKeyToDeprecation,
     RenderedReadMeResult readmeResult)
 {
     _listPackageItemViewModelFactory.Setup(viewModel, package, currentUser);
     SetupCommon(viewModel, package, pushedBy: null, packageKeyToDeprecation: packageKeyToDeprecation);
     return(SetupInternal(viewModel, package, allVersions, currentUser, packageKeyToDeprecation, readmeResult));
 }
 public DisplayPackageViewModel Setup(
     DisplayPackageViewModel viewModel,
     Package package,
     IReadOnlyCollection <Package> allVersions,
     User currentUser,
     IReadOnlyDictionary <int, PackageDeprecation> packageKeyToDeprecation,
     IReadOnlyDictionary <int, IReadOnlyList <PackageVulnerability> > packageKeyToVulnerabilities,
     IReadOnlyList <PackageRename> packageRenames,
     RenderedMarkdownResult readmeResult)
 {
     _listPackageItemViewModelFactory.Setup(viewModel, package, currentUser);
     SetupCommon(viewModel, package, pushedBy: null,
                 packageKeyToDeprecation: packageKeyToDeprecation, packageKeyToVulnerabilities: packageKeyToVulnerabilities);
     return(SetupInternal(viewModel, package, allVersions, currentUser,
                          packageKeyToDeprecation, packageKeyToVulnerabilities, packageRenames, readmeResult));
 }
 public ListPackageItemRequiredSignerViewModel Setup(
     ListPackageItemRequiredSignerViewModel viewModel,
     Package package,
     User currentUser,
     bool wasAADLoginOrMultiFactorAuthenticated)
 {
     _listPackageItemViewModelFactory.Setup(viewModel, package, currentUser);
     return(SetupInternal(viewModel, package, currentUser, wasAADLoginOrMultiFactorAuthenticated));
 }
 public ManagePackageViewModel Setup(
     ManagePackageViewModel viewModel,
     Package package,
     User currentUser,
     IReadOnlyList <ReportPackageReason> reasons,
     UrlHelper url,
     string readMe,
     bool isManageDeprecationEnabled)
 {
     _listPackageItemViewModelFactory.Setup(viewModel, package, currentUser);
     return(SetupInternal(viewModel, package, currentUser, reasons, url, readMe, isManageDeprecationEnabled));
 }
 private DeleteAccountListPackageItemViewModel Setup(DeleteAccountListPackageItemViewModel viewModel, Package package, User userToDelete, User currentUser)
 {
     _listPackageItemViewModelFactory.Setup(viewModel, package, currentUser);
     return(SetupInternal(viewModel, package, userToDelete));
 }