public void AddSnapshot_SessionIsNotAutoClose_SnapshotShouldBeSavedInMemory() { var snapshot = new Snapshot { Id = "NewSnapshotId", SessionId = "SessionId" }; var session = new Session { Id = "SessionId" }; inMemoryStorage.Clear(); inMemoryStorage.Add(session); subject.Add(snapshot); var result = inMemoryStorage.GetSnapshot(snapshot.SessionId, snapshot.Id); result.Should().NotBeNull(); }