public void WhenIDeleteTheFolderWithoutRecursiveDeleteFlag(string folderToDelete)
{
var environmentModel = EnvironmentRepository.Instance.FindSingle(model => model.Name == "localhost");
ServerExplorerClientProxy repository = new ServerExplorerClientProxy(environmentModel.Connection);
var result = repository.DeleteItem(new ServerExplorerItem(folderToDelete, Guid.NewGuid(), ResourceType.Folder, null, Permissions.Administrator, ""), Guid.Empty);
Assert.AreEqual(result.Status, ExecStatus.Success);
var explorerItemModel = repository.Load(Guid.Empty);
Assert.IsFalse(0 == explorerItemModel.Children.Count(a => a.DisplayName == folderToDelete));
ScenarioContext.Current.Add("localhost", explorerItemModel);
ScenarioContext.Current.Add("newName", explorerItemModel);
}