コード例 #1
0
        public void GetGrowthInfo_GivenAValidPatientKey_ReturnsGrowthRateInfo()
        {
            Session.Clear();
            var handler = new GetGrowthInformationByPatientKeyRequestHandler { SessionProvider = SessionProvider };
            Request request = new GetGrowthInformationByPatientKeyRequest { Key = TaddYoungPatient.Key };

            Response response = handler.Handle(request);
            var growthRateInfoResponse = response as GetGrowthInformationByPatientKeyResponse;

            Assert.IsNotNull ( growthRateInfoResponse );
            Assert.IsTrue ( growthRateInfoResponse.GrowthInfoDto.GrowthRateHeightDtos.Count > 0 );
            Assert.IsTrue ( growthRateInfoResponse.GrowthInfoDto.GrowthRateWeightDtos.Count > 0 );
        }
コード例 #2
0
        public void GetGrowthInfo_GivenAValidPatientKey_ReturnsGrowthRateInfo()
        {
            Session.Clear();
            var handler = new GetGrowthInformationByPatientKeyRequestHandler {
                SessionProvider = SessionProvider
            };
            Request request = new GetGrowthInformationByPatientKeyRequest {
                Key = TaddYoungPatient.Key
            };

            Response response = handler.Handle(request);
            var      growthRateInfoResponse = response as GetGrowthInformationByPatientKeyResponse;

            Assert.IsNotNull(growthRateInfoResponse);
            Assert.IsTrue(growthRateInfoResponse.GrowthInfoDto.GrowthRateHeightDtos.Count > 0);
            Assert.IsTrue(growthRateInfoResponse.GrowthInfoDto.GrowthRateWeightDtos.Count > 0);
        }