GetIdentifiedPathway() 공개 메소드

public GetIdentifiedPathway ( IEnumerable pathwayNumbers, string gender, int age ) : Task
pathwayNumbers IEnumerable
gender string
age int
리턴 Task
        public async void GetIdentifiedPathway_with_invalid_gender_returns_null()
        {
            MockPathwaysConfigurationManager.Setup(m => m.UseLivePathways).Returns(false);
            _pathwayRepository = new PathwayRepository(GraphRepository, MockPathwaysConfigurationManager.Object);

            var res = await _pathwayRepository.GetIdentifiedPathway(new[] { "PW103" }, "Male", 25);
            Assert.IsNull(res);
        }
        public async void GetIdentifiedPathway_with_valid_params_returns_pathway()
        {
            MockPathwaysConfigurationManager.Setup(m => m.UseLivePathways).Returns(false);
            _pathwayRepository = new PathwayRepository(GraphRepository, MockPathwaysConfigurationManager.Object);

            var res = await _pathwayRepository.GetIdentifiedPathway(new[] {"PW102"}, "Male", 25);
            Assert.AreEqual(res.PathwayNo, "PW102");
        }
        public async void GetIdentifiedPathway_when_only_using_live_for_valid_params_not_live_returns_null()
        {
            MockPathwaysConfigurationManager.Setup(m => m.UseLivePathways).Returns(true);
            _pathwayRepository = new PathwayRepository(GraphRepository, MockPathwaysConfigurationManager.Object);

            var res = await _pathwayRepository.GetIdentifiedPathway(new[] { "PW102" }, "Male", 25);
            Assert.IsNull(res);
        }