Пример #1
0
 public DeletePackageViewModel Setup(
     DeletePackageViewModel viewModel,
     Package package,
     User currentUser,
     IReadOnlyList <ReportPackageReason> reasons)
 {
     _displayPackageViewModelFactory.Setup(viewModel, package, currentUser, deprecation: null, readMeHtml: null);
     return(SetupInternal(viewModel, package, reasons));
 }
        public DeletePackageViewModel Setup(
            DeletePackageViewModel viewModel,
            Package package,
            IReadOnlyCollection <Package> allVersions,
            User currentUser,
            IReadOnlyList <ReportPackageReason> reasons)
        {
            _displayPackageViewModelFactory.Setup(
                viewModel,
                package,
                allVersions,
                currentUser,
                packageKeyToDeprecation: null,
                readmeResult: null);

            return(SetupInternal(viewModel, package, reasons));
        }