示例#1
0
        public async Task Get_CreatesProjectsList_MultipleProjects(ProjectSyncanoClient client)
        {
            //given
            const int count = 10;

            for (int i = 0; i < count; ++i)
            {
                await client.New("Test project " + i);
            }

            //when
            var response = await client.Get();

            //then
            response.ShouldNotBeEmpty();
            response.Any(p => p.Name == TestData.ProjectName).ShouldBeTrue();
            response.Count.ShouldEqual(count + 1);

            //cleanup
            foreach (var project in response)
            {
                if (project.Id != TestData.ProjectId)
                {
                    await client.Delete(project.Id);
                }
            }
        }
示例#2
0
        public async Task Get_CreatesProjectsList(ProjectSyncanoClient client)
        {
            //when
            var response = await client.Get();

            //then
            response.ShouldNotBeEmpty();
            response.Any(p => p.Name == TestData.ProjectName).ShouldBeTrue();
        }