예제 #1
0
        public async Task Repo_GetAll_ReturnsNonNullResultSet()
        {
            LaunchpadApiRepository repo          = new LaunchpadApiRepository(_configuration, _logger);
            List <LaunchPad>       launchPadList = await repo.GetAllAsync();

            Assert.NotNull(launchPadList);
            Assert.True(launchPadList.Count > 0);
        }
예제 #2
0
        public async Task Repo_GetListThenIndividualLaunchPad_ReturnsMatchingLaunchpad()
        {
            LaunchpadApiRepository repo          = new LaunchpadApiRepository(_configuration, _logger);
            List <LaunchPad>       launchPadList = await repo.GetAllAsync();

            LaunchPad launchpad = await repo.GetAsync(launchPadList[0].Id);

            Assert.NotNull(launchpad);
            Assert.True(launchPadList[0].Equals(launchpad));
        }