Exemplo n.º 1
0
        public void Not_generate_and_upload_pdf_and_xml_documents_of_the_share_point_document_library_given_a_site_collection_provisioned_message_for_deposit_projects()
        {
            var handler = new GenerateDmpCommandHandler(_generator, _projectRepository);

            Test.Handler(handler)
            .OnMessage <GenerateDmpCommand>(m =>
            {
                m.ProjectId = _depositProject.Id;
                m.SiteUrl   = SiteUri;
            });

            _generatorHelper.DidNotReceive().CreateFilePath(Arg.Any <string>());
            _dataManagementPlanRepository.DidNotReceive().GetDataManagementPlanByProjectId(Arg.Is(_nonDepositProject.Id));
            //_pdfHelper.DidNotReceive().GeneratePdf(Arg.Any<string>(), Arg.Any<DataManagementPlan>());
            _xmlHelper.DidNotReceive().Save(Arg.Any <string>(), Arg.Any <DataManagementPlan>());
        }