require_relative 'helper'
require 'azure_power_bi_app_dashboard'

class AzurePowerBIAppDashboardConstructorTest < Minitest::Test
  def test_empty_param_not_ok
    assert_raises(ArgumentError) { AzurePowerBIAppDashboard.new }
  end

  # resource_provider should not be allowed.
  def test_resource_provider_not_ok
    assert_raises(ArgumentError) { AzurePowerBIAppDashboard.new(resource_provider: 'some_type') }
  end

  def test_resource_group_name_alone_ok
    assert_raises(ArgumentError) { AzurePowerBIAppDashboard.new(name: 'my-name', resource_group: 'test') }
  end
end
