public void Create_WithValidName_ReturnsCreatedContainer(string newDirectory)
        {
            // Arrange
              var mockedDirectory = MockedDirectory();
              mockedDirectory.Stub(x => x.CreateDirectory(newDirectory));
              var testManager = new FileSystemContainerManager("test", mockedDirectory);

              // Act
              var result = testManager.Create(newDirectory);

              // Assert
              Assert.That(((FileSystemContainer)result).DirectoryPath, Is.EqualTo(newDirectory));
        }
        public void Create_WithEmptyName_ThrowsInvalidNameException(string directoryName)
        {
            // Arrange
              var testManager = new FileSystemContainerManager("test", MockedDirectory());

              // Act & Assert
              Assert.Throws<InvalidNameException>(() => testManager.Create(directoryName));
        }
        public void Create_WithValidName_CreatesDirectory(string newDirectory)
        {
            // Arrange
              var expectedPath = "test" + Path.DirectorySeparatorChar + newDirectory;

              var mockedDirectory = MockedDirectory();
              mockedDirectory.Expect(x => x.CreateDirectory(expectedPath));
              var testManager = new FileSystemContainerManager("test", mockedDirectory);

              // Act
              testManager.Create(newDirectory);

              // Assert
              mockedDirectory.AssertWasCalled(x => x.CreateDirectory(expectedPath));
        }