Parameterized Unit Testing Class Types

I have the following test in xUnit:
    [Fact]
    public async Task QaTrackUrls_Should_Connect() {
        var context = new QaTrackContext();
        //var property = typeof(IModelBase).GetProperty("RequestUrl").GetValue(model).ToString();

        var result = await context.GetAsync<ServiceEventModel>(ServiceEventsModel.RequestUrl);

        Assert.True(result.IsSuccess);
    }


I want to parameterize the test by giving classes (like ServiceEventsModel) instead of writing each one manually. so far, I've tried this:
    [Theory]
    [InlineData(typeof(ServiceEventsModel))]
    public async Task QaTrackUrls_Should_Connect(Type model) {
        var context = new QaTrackContext();
        var property = typeof(IModelBase).GetProperty("RequestUrl").GetValue(model).ToString();

        var result = await context.GetAsync<model>(property);

        Assert.True(result.IsSuccess);
    }

but
context.GetAsync<model>
gives an error
 'model' is a variable but is used like a type 
making it typeof(model) doesn't work and creates more errors.
Was this page helpful?