Exemplo n.º 1
0
 protected DocumentController GetTarget()
 {
     var controller = new DocumentController(
         _lookupService.Object,
         _docLibraryService.Object,
         _streamingDocLibraryService.Object,
         _documentLibraryUploader.Object,
         _siteService.Object,
         _documentService.Object,
         _streamingClientDocService.Object,
         _log.Object);
     return TestControllerHelpers.AddUserWithDefinableAllowedSitesToController(controller, _allowedSites);
 }
Exemplo n.º 2
0
        public virtual void Setup()
        {
            _lookupService = new Mock<ILookupService>();
            _lookupService.Setup(x => x.GetDocumentTypes()).Returns(new List<LookupDto>());
            
            _documentLibraryUploader = new Mock<IDocumentLibraryUploader>();

            _docLibraryService = new Mock<IDocumentLibraryService>();
            _streamingDocLibraryService = new Mock<IStreamingDocumentLibraryService>();

            _siteService = new Mock<ISiteService>();
            _documentService = new Mock<IDocumentService>();
            _streamingClientDocService = new Mock<IStreamingClientDocumentService>();
            _log = new Mock<IPeninsulaLog>();

            _allowedSites = new List<long>() { 123, 456, 789 };

            _target = GetTarget();
        }