Ejemplo n.º 1
0
        public void CheckCreatingNewRepositories_RepositoryPageWillExistNewRepository_TrueReturned()
        {
            var generatedRepositoryName = TestExtensions.GetRandomString(length: 8);
            var repositoryForm          = new RepositoryFormInfo()
            {
                Name               = generatedRepositoryName,
                Description        = "test creating repository",
                NeedToAddReadmi    = true,
                Visibility         = Visibility.Private,
                NeedToAddGitIgnore = true,
                GitIgnoreTemplate  = "VisualStudio",
            };

            RepositoriesSteps.CreateNewRepository(repositoryForm);
            var actual = RepositoriesSteps.ContainsRepository(generatedRepositoryName);

            Assert.True(actual);
        }
Ejemplo n.º 2
0
        public void DeleteCreatedRepository_RepositoryDeletedFromAccount_FalseReturned()
        {
            var generatedRepositoryName = TestExtensions.GetRandomString(length: 8);
            var repositoryForm          = new RepositoryFormInfo()
            {
                Name               = generatedRepositoryName,
                Description        = "test creating and deleting",
                NeedToAddReadmi    = true,
                Visibility         = Visibility.Private,
                NeedToAddGitIgnore = true,
                GitIgnoreTemplate  = "VisualStudio",
            };

            var newRepository = RepositoriesSteps.CreateNewRepository(repositoryForm);

            RepositoriesSteps.DeleteRepository(newRepository);
            var actual = RepositoriesSteps.ContainsRepository(generatedRepositoryName);

            Assert.False(actual);
        }