Exemple #1
0
        public async Task GivenAnExistingResource_WhenReadAVersion_ThenAuditLogEntriesShouldBeCreated()
        {
            await ExecuteAndValidate(
                async() =>
            {
                FhirResponse <Organization> result = await _client.CreateAsync(Samples.GetDefaultOrganization().ToPoco <Organization>());

                return(await _client.VReadAsync <Organization>(ResourceType.Organization, result.Resource.Id, result.Resource.Meta.VersionId));
            },
                "vread",
                ResourceType.Organization,
                o => $"Organization/{o.Id}/_history/{o.Meta.VersionId}",
                HttpStatusCode.OK);
        }