Namespace Serenity.Tests.Shared.Fakes
Classes
FakeAtomicFileWriterService
No-op IAtomicFileWriterService implementation for testing.
FakeBlobStore
No-op IBlobStore implementation for testing.
FakeEventDispatcherService
No-op IEventDispatcherService implementation for testing.
FakeFileSystemService
No-op IFileSystemService implementation for testing.
FakeLogService
No-op ILogService implementation for testing.
FakeLogSettings
No-op ILogSettings implementation for testing.
GatedKeyValueStore
In-memory IKeyValueStore whose FIRST GetAsync call captures the current value and then suspends until the test calls ReleaseFirstReadGate() — returning the value it captured BEFORE suspending. This lets a test hold one read-modify-write cycle open on its stale snapshot while issuing a second concurrent operation, proving (or disproving) lost-update protection in the store under test.
InMemoryBlobStore
In-memory IBlobStore implementation for testing.
InMemoryKeyValueStore
In-memory IKeyValueStore implementation for testing.
InMemoryStructuredStore
In-memory IStructuredStore used for tests. Delegates every filter/sort/distinct/ trim computation to StructuredQueryEngine — the same engine every real backend delegates to — so this fake exercises the exact same semantics as production stores.
RecordingLogService
ILogService implementation that records warning and error messages for assertions.
RecordingViewBase
Plain IViewBase that records show/hide calls, for router/browser tests.
RecordingViewBrowserService
Real-shaped IViewBrowserService over a plain list, so tests can push, pop and inspect the navigation history without a MonoBehaviour.
ThrowingBlobStore
IBlobStore implementation whose every operation throws, for failure-path testing.
ThrowingKeyValueStore
IKeyValueStore implementation whose every operation throws, for failure-path testing.