Beispiel #1
0
        public void DropProject()
        {
            var dropProject = ApiClientHelper.GetFirstProject();

            var request = _builder.GetDeleteProjectRequest(dropProject.Id);
            var res     = _client.GetBoolResult(request);

            Assert.IsTrue(res);

            var newProjects = ApiClientHelper.GetProjects();

            Assert.IsNull(newProjects.FirstOrDefault(p => p.Id == dropProject.Id));
        }
Beispiel #2
0
        public void EnableDisableProject()
        {
            var project  = ApiClientHelper.GetFirstProject();
            var newState = (project.On == 0) ? -1 : 0;

            var request = _builder.GetUpdateProjectRequest(project.Id, newState);
            var res     = _client.GetBoolResult(request);

            Assert.IsTrue(res);

            var projects   = ApiClientHelper.GetProjects(false);
            var newProject = projects.First(p => project.Id == p.Id);

            Assert.AreEqual(newProject.On, newState);
        }
Beispiel #3
0
 public void LoadProjects()
 {
     var projects = ApiClientHelper.GetProjects();
 }