public void Get_WithInvalidName_ThrowsInvalidNameException()
        {
            // Arrange
              var manager = new RackspaceContainerManager(MockRepository.GenerateStub<IConnection>());

              // Act & Assert
              Assert.Throws<InvalidNameException>(() => manager.Get(null));
        }
        public void Get_WithValidName_ReturnsContainer(string name)
        {
            // Arrange
              var container = MockRepository.GenerateStub<IContainer>();
              container.Stub(x => x.Name).Return(name);
              var account = MockRepository.GenerateStub<IAccount>();
              account.Stub(x => x.ContainerExists(name)).Return(true);
              account.Stub(x => x.GetContainer(name)).Return(container);

              var manager = new RackspaceContainerManager() {Account = account};

              // Act
              var result = manager.Get(name);

              // Assert
              Assert.That(result.Name, Is.EqualTo(name));
        }
        public void Get_NonExistentContainer_ReturnsNull(string name)
        {
            // Arrange
              var manager = new RackspaceContainerManager() { Account = MockRepository.GenerateStub<IAccount>() };

              // Act
              var result = manager.Get(name);

              // Assert
              Assert.That(result, Is.Null);
        }