. $PSScriptRoot\obterStringConexao.ps1
. $PSScriptRoot\obterEnderecoHttpServico.ps1
. $PSScriptRoot\obterBuildTools.ps1
. $PSScriptRoot\configurarArquivosWebConfig.ps1

function global:_mu.configurarOrcamentoWeb.test() {
    . $PSScriptRoot\configuracoesMicrouniversoWeb.ps1

    $configuracoes = mu.configuracoesMicrouniversoWeb.obter -enderecoYaml "C:\temp\microuniversoWeb.yaml"
    $diretorioReleaseWeb = "C:\TrabalhoWeb\ReleaseWeb"

    $buildTools = mu.obterBuildTools $configuracoes $diretorioReleaseWeb

    _mu.configurarOrcamentoWeb $configuracoes $buildTools

}

function global:_mu.configurarAuthServer.test() {
    . $PSScriptRoot\configuracoesMicrouniversoWeb.ps1

    $configuracoes = mu.configuracoesMicrouniversoWeb.obter -enderecoYaml "C:\temp\microuniversoWeb.yaml"
    $diretorioReleaseWeb = "C:\TrabalhoWeb\ReleaseWeb"

    $buildTools = mu.obterBuildTools $configuracoes $diretorioReleaseWeb

    _mu.configurarAuthServer $configuracoes $buildTools

}

function global:_mu.configurarAuthServer.test2() {
    $configuracoes = mu.configuracoesMicrouniversoWeb.obter C:\TrabalhoWeb\ScriptsDeploy\scripts_implantacao\microuniversoWeb-modelo.yaml

    $diretorioReleaseWeb = "C:\TrabalhoWeb\ReleaseWeb"

    $buildTools = mu.obterBuildTools $configuracoes $diretorioReleaseWeb

    _mu.configurarAuthServer $configuracoes $buildTools
}

function global:_mu.configurarRest.test() {
    . $PSScriptRoot\configuracoesMicrouniversoWeb.ps1

    $configuracoes = mu.configuracoesMicrouniversoWeb.obter -enderecoYaml "C:\temp\microuniversoWeb-teste-fenixwrapper.yaml"
    $diretorioReleaseWeb = "C:\TrabalhoWeb\ReleaseWeb"

    $buildTools = mu.obterBuildTools $configuracoes $diretorioReleaseWeb

    _mu.configurarRest $configuracoes $buildTools

}

function global:_mu.configurarSegurancaWeb.test() {
    $configuracoes = mu.configuracoesMicrouniversoWeb.obter c:\temp\microuniversoWeb-fenixwrapper-seguranca-web.yaml

    $diretorioReleaseWeb = "C:\TrabalhoWeb\ReleaseWeb"

    $buildTools = mu.obterBuildTools $configuracoes $diretorioReleaseWeb

    _mu.configurarSegurancaWeb $configuracoes $buildTools
}

function global:_mu.configurarRest.test() {
    $configuracoes = mu.configuracoesMicrouniversoWeb.obter c:\temp\microuniversoWeb-teste-rest.yaml

    $diretorioReleaseWeb = "C:\TrabalhoWeb\ReleaseWeb"

    $buildTools = mu.obterBuildTools $configuracoes $diretorioReleaseWeb

    _mu.configurarRest $configuracoes $buildTools
}