Expand Aetheria managed state facade
This commit is contained in:
parent
c64ee03a94
commit
e1d25705e5
4 changed files with 78 additions and 3 deletions
|
|
@ -77,11 +77,20 @@ public class StarbridgePlayerSeatDocumentTests
|
|||
.GetResult();
|
||||
var handle = client.Document<AetheriaRuntimeStarbridgePlayerSeatDocument>(
|
||||
AetheriaRuntimeVerseRecordKeys.StarbridgePlayerSeat(seat.SeatId));
|
||||
var aetheriaSeat = client
|
||||
.Aetheria()
|
||||
.Starbridge
|
||||
.PlayerSeat(seat.SeatId);
|
||||
using var reactive = handle.Reactive();
|
||||
using var aetheriaReactive = aetheriaSeat.Reactive();
|
||||
|
||||
Assert.AreEqual("seat-support", handle.Latest().SeatId);
|
||||
Assert.AreEqual("seat-support", aetheriaSeat.Latest().SeatId);
|
||||
Assert.AreEqual("item:cockpit:support", reactive.Current.CockpitItemKey);
|
||||
Assert.AreEqual("item:cockpit:support", aetheriaReactive.Current.CockpitItemKey);
|
||||
Assert.AreEqual("entity:pod:support", reactive.Current.EscapePodEntityKey);
|
||||
Assert.AreEqual("entity:pod:support", aetheriaReactive.Current.EscapePodEntityKey);
|
||||
Assert.AreEqual("unity-support", reactive.Document.Context.RuntimeId);
|
||||
Assert.AreEqual("unity-support", aetheriaReactive.Document.Context.RuntimeId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue