Ejemplo n.º 1
0
        public void GivenValidTemplate_WhenCreateValue_ThenSampledDataProperlyConfigured_Test()
        {
            var processor = new QuantityFhirValueProcessor();
            var template  = new QuantityFhirValueType
            {
                Unit   = "myUnit",
                System = "mySystem",
                Code   = "myCode",
            };

            var data   = (DateTime.Now, DateTime.UtcNow, new (DateTime, string)[] { (DateTime.UtcNow, "22.4") });
Ejemplo n.º 2
0
        public void GivenValidTemplate_WhenCreateValue_ThenSampledDataProperlyConfigured_Test()
        {
            var processor = new QuantityFhirValueProcessor();
            var template  = new QuantityFhirValueType
            {
                Unit   = "myUnit",
                System = "mySystem",
                Code   = "myCode",
            };

            var data = Substitute.For <IObservationData>()
                       .Mock(m => m.DataPeriod.Returns((DateTime.UtcNow, DateTime.UtcNow)))
                       .Mock(m => m.Data.Returns(new (DateTime, string)[] { (DateTime.UtcNow, "22.4") }));