Converting Tests back to C# but still with Playwright
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<MudDataGrid T="EntityProductionModel" Items="@data"
|
||||
SortMode="SortMode.Multiple"
|
||||
Filterable="true"
|
||||
Hideable="true">
|
||||
<Columns>
|
||||
<PropertyColumn Property="x => x.Parent.GetName()" Title="Entity"/>
|
||||
<PropertyColumn Property="x => x.Alloy"/>
|
||||
<PropertyColumn Property="x => x.BuildTime"/>
|
||||
<PropertyColumn Property="x => x.Ether"/>
|
||||
<PropertyColumn Property="x => x.Parent.GetFaction()" Title="Faction"/>
|
||||
<PropertyColumn Property="x => x.Parent.GetImmortal()" Title="Immortal"/>
|
||||
</Columns>
|
||||
</MudDataGrid>
|
||||
|
||||
@code {
|
||||
|
||||
readonly IEnumerable<EntityProductionModel> data = EntityData.Get()
|
||||
.SelectMany(e => e.Value.EntityParts)
|
||||
.OfType<EntityProductionModel>()
|
||||
.ToList();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user