public async Task InlineProject(Action <TestEventScenario> action) { var scenario = new TestEventScenario(); action(scenario); var streams = scenario .Streams .ToDictionary() .Select(x => StreamAction.Append(x.Key, x.Value.Events().ToArray())) .ToArray(); var inline = _projection.BuildRuntime(theStore); await inline.ApplyAsync(theSession, streams, CancellationToken.None); await theSession.SaveChangesAsync(); }