public async Task Setup(object o, object context) { var customerUid = o.GetConvertedObject <string>(); if (string.IsNullOrEmpty(customerUid)) { throw new NullReferenceException("customerUid cannot be null"); } headers = authn.CustomHeadersJWTAndBearer(); headers.AppendOrOverwriteCustomerHeader(customerUid); log.LogDebug($"Requesting projects for customer {customerUid}"); customerProjects = (await projects.GetProjects(customerUid, headers)).Where(p => !p.IsArchived).ToList(); log.LogDebug($"Recieved {customerProjects.Count} projects for customer {customerUid}"); }