Esempio n. 1
0
        public void TestTheDeleting()
        {
            var s = new Mock<IAzureService>();

            var containerDictionary = SetupContainers();
            s.Setup(i => i.Containers).Returns(containerDictionary.Keys.Select(k => k.Object));

            var fileService = new AzureFilesService(s.Object);
            fileService.DeleteFiles();
            VerifyProperFilesHaveBeenDeleted(containerDictionary);
        }
 protected override void ProcessRecord()
 {
     base.ProcessRecord();
     var files = new AzureFilesService(new AzureService(AzureAccount, AzurePassword), MessageHandler, ProgressHandler);
     files.DeleteFiles();
 }