public static async Task <TState> LoadProcessByActor <TState>(this TestKit kit, string id) where TState : class, IProcessState { return((await kit.LoadAggregateByActor <ProcessStateAggregate <TState> >(id)).State); }