test(overview): migrate renderer fixtures to bUnit 2.7.2

This commit is contained in:
Joseph Doherty
2026-11-13 14:41:17 -05:00
parent f96104245e
commit 8232f3a9ee
20 changed files with 5973 additions and 9 deletions
@@ -9,7 +9,7 @@ namespace ZB.MOM.WW.Overview.Tests;
/// actually distinguish at a glance: which of the four states is shown, whether it is still
/// current, and whether the raw evidence behind it is visible.
/// </summary>
public class InstanceCardTests : TestContext
public class InstanceCardTests : BunitContext
{
private static readonly DateTimeOffset Now = new(2026, 7, 24, 12, 0, 0, TimeSpan.Zero);
@@ -44,7 +44,7 @@ public class InstanceCardTests : TestContext
};
private IRenderedComponent<InstanceCard> Render(InstanceSnapshot instance, bool isLeader = false) =>
RenderComponent<InstanceCard>(p => p
base.Render<InstanceCard>(p => p
.Add(c => c.Instance, instance)
.Add(c => c.Now, Now)
.Add(c => c.IsLeader, isLeader));