public ScreeningAppService(IAggregateStore aggregateStore, GetUtcNow getUtcNow, GetMovieDuration getMovieDuration, GetTheaterCapacity getTheaterCapacity) : base(aggregateStore) { _getUtcNow = getUtcNow; _getMovieDuration = getMovieDuration; _getTheaterCapacity = getTheaterCapacity; }
public static async Task <Theater> FromId(string id, GetTheaterCapacity getTheaterCapacity) => new Theater(id) { Capacity = await getTheaterCapacity(id) };