Пример #1
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);
        }