public async Task CreateCertificatesExample() { long uln = 1234567890; string firstName = "Fred"; string lastName = "Blogs"; int standardCode = 1; string standardReference = "ST0127"; string overallGrade = "PASS"; string contactName = "Shreya Smith"; string organisation = "Contoso Ltd"; string address = "123 Test Road"; string city = "Townsville"; string postcode = "ZY9 9ZY"; CreateCertificateRequest newCertificate = new CreateCertificateRequest { Learner = new Learner { Uln = uln, GivenNames = firstName, FamilyName = lastName }, Standard = new Standard { StandardCode = standardCode, StandardReference = standardReference }, LearningDetails = new LearningDetails { OverallGrade = overallGrade, AchievementDate = DateTime.UtcNow }, PostalContact = new PostalContact { ContactName = contactName, Organisation = organisation, AddressLine1 = address, City = city, PostCode = postcode } }; if (newCertificate.IsValid(out _)) { // NOTE: The External API performs validation, however it is a good idea to check beforehand await _CertificateApiClient.CreateCertificates(new List <CreateCertificateRequest> { newCertificate }); } }