public void Assert_query_sets_appropriate_metric_transform(MetricTransformEnum metricTransformEnum)
        {
            var attribute = new SqlServerQueryAttribute("FileIO.sql", "Foo/Bar") {MetricTransformEnum = metricTransformEnum};
            var sqlQuery = new SqlQuery(typeof (FileIoView), attribute, Substitute.For<IDapperWrapper>(), "");

            Assert.That(sqlQuery.MetricTransformEnum, Is.EqualTo(attribute.MetricTransformEnum), "SqlQuery did not set correct value from attribute for MetricTransformEnum");
        }
 public void Assert_query_type_has_attribute_with_valid_resource_name(Type queryType, SqlServerQueryAttribute attribute)
 {
     var sql = queryType.Assembly.SearchForStringResource(attribute.ResourceName);
     Assert.That(sql, Is.Not.Null);
 }