tests/Tasks.Tests.ps1

BeforeAll {
    $TMAD50 = New-TMSession 
    $TaskName = 'Test Task - Created by Pester'
}

Describe 'Get-TMTask' {

}



Describe 'New-TMTask' {
    Context 'Without Dependencies' {
        BeforeAll {
            $NewTaskSplat = @{
                TMSession = "TMAD60"
                Title = "Test Task - w/ Dependencies"
                EventId = 460
                ProjectId = 6269
                Status = "Ready"
                Team = 'SYS_ADMIN'
                AssignedToId = 6246
                AssetId = 232053
                Successor = 369638, 411521
                Predecessor = 411702
                Note = "This was created via PowerShell"
                Passthru = $true
                ActionId = 178
            }
        
        }
    }
    Context 'With Dependencies' {

    }
    New-TMTask @NewTaskSplat
    Should -
}