Example #1
0
        public void ValidPointer_Valid_with_MasterId()
        {
            var validationService = new FhirValidation(_iValidationHelper);
            var pointer           = NrlsPointers.Valid_With_MasterId;

            var validPoiner = validationService.ValidPointer(pointer);

            Assert.IsType <OperationOutcome>(validPoiner);
            Assert.True(validPoiner.Success);
        }
Example #2
0
        public void ValidPointer_Invalid_MasterId_System()
        {
            var validationService = new FhirValidation(_iValidationHelper);
            var pointer           = NrlsPointers.Invalid_MasterId_System;

            var validPoiner = validationService.ValidPointer(pointer);

            var notexpected = OperationOutcomes.Ok;

            Assert.NotEqual(notexpected, validPoiner, Comparers.ModelComparer <OperationOutcome>());
        }
Example #3
0
        public void ValidPointer_Invalid_RelatesTo_Value()
        {
            var validationService = new FhirValidation(_iValidationHelper);
            var pointer           = NrlsPointers.Missing_RelatesTo_Value;

            var validPoiner = validationService.ValidPointer(pointer);

            var notexpected = OperationOutcomes.Ok;

            Assert.NotEqual(notexpected, validPoiner, Comparers.ModelComparer <OperationOutcome>());
        }
Example #4
0
        public void ValidPointer_TooMany_Author()
        {
            var validationService = new FhirValidation(_iValidationHelper);
            var pointer           = NrlsPointers.TooMany_Author;

            var validPoiner = validationService.ValidPointer(pointer);

            var notexpected = OperationOutcomes.Ok;

            Assert.NotEqual(notexpected, validPoiner, Comparers.ModelComparer <OperationOutcome>());
        }