PeanutButter
Loading...
Searching...
No Matches
PeanutButter.TestUtils.AspNetCore.Fakes.FakeSession Class Reference

Provides a fake session. More...

Inheritance diagram for PeanutButter.TestUtils.AspNetCore.Fakes.FakeSession:
PeanutButter.TestUtils.AspNetCore.Fakes.IFake

Public Member Functions

Task LoadAsync (CancellationToken cancellationToken=new())
Task CommitAsync (CancellationToken cancellationToken=new())
bool TryGetValue (string key, out byte[] value)
void Set (string key, byte[] value)
void Remove (string key)
void Clear ()

Properties

bool IsAvailable = true [get]
string Id = Guid.NewGuid().ToString() [get]
IEnumerable< string > Keys [get]

Detailed Description

Provides a fake session.


The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/FakeSession.cs