예제 #1
0
 private void CreateViewFolderIfNeeded()
 {
     if (configuration.HasView)
     {
         storageProvider.CreateViewFolder(configuration.View);
     }
 }
예제 #2
0
        public void CreateViewFolder_CreatesFolder()
        {
            const string path = "path";

            fileSystemUtilsMock.Setup(f => f.DirectoryExists(It.IsAny <string>())).Returns(false);
            provider.CreateViewFolder(path);
            fileSystemUtilsMock.Verify(f => f.DirectoryExists(It.IsAny <string>()), Times.Once);
            fileSystemUtilsMock.Verify(f => f.CreateDirectory(It.IsAny <string>()), Times.Once);
        }