public static ViewDefinition ToViewDefinition(this SparkDescriptor viewDescriptor)
        {
            var normal  = viewDescriptor.ToSparkViewDescriptor();
            var partial = viewDescriptor.ToPartialSparkViewDescriptor();

            return(new ViewDefinition(normal, partial));
        }
 public void spark_partial_view_descriptor_is_built_using_the_template_descriptor()
 {
     _definition.PartialDescriptor.ShouldEqual(_descriptor.ToPartialSparkViewDescriptor());
 }