title: How to bind a property value while rendering a blazor component in bUnit test case
body: <p>I've a StoreTable component in blazor server app where I've placed a condition before rendering few controls</p>
  <pre><code>public ProductDetailsDto ProductList { get; set; } = new ProductDetailsDto();
  public FreightSnpPoliciesDto SnpDTO { get; set; } = new FreightSnpPoliciesDto();
  
  
  @if (ProductList != null || SnpDTO != null)
  {
  ------
  -----Rendering controls here
  }
  </code></pre>
  <p>Now, in my unit test case I'm trying to find the controls that are placed in condition and they are not getting rendered because I think ProductList and SnpDTO are null.</p>
  <pre><code>var publishChangesBtn = storeTableComponent.Find(&quot;#publishChangesBtn&quot;);
  </code></pre>
  <p>I need some way to pass these values while rendering. These 2 properties are not [Parameter]</p>