Ejemplo n.º 1
0
        public void GetAllProject()
        {
            ProjectBLL projectBLL = new ProjectBLL();
            var        projCount  = projectBLL.GetAll().Count;

            Assert.IsTrue(projCount > 0, "GetAll Projects of Project Service Executed Successfully");
        }
Ejemplo n.º 2
0
 private void ProjectList()
 {
     cmbProject.DataSource    = _projectBLL.GetAll();
     cmbProject.DisplayMember = "ProjectName";
     cmbProject.ValueMember   = "ID";
     cmbProject.SelectedValue = 0;
 }
Ejemplo n.º 3
0
        public void GetAllProjects_Benchmark_Performance()
        {
            ProjectBLL projectBLL = new ProjectBLL();

            for (var i = 0; i < 100; i++)
            {
                projectBLL.GetAll();
            }
        }
Ejemplo n.º 4
0
        public void AddProject()
        {
            ProjectBLL projectBLL = new ProjectBLL();

            projectBLL.CreateProject(projObj);
            Project createdproj = projectBLL.GetAll().Last();

            Assert.AreEqual(projObj.ProjectName, createdproj.ProjectName);
            Assert.AreEqual(projObj.Priority, 1);
        }
 private void RequestListForm_Load(object sender, EventArgs e)
 {
     cmbProject.SelectedIndex = -1;
     cmbProject.DataSource    = _projectBLL.GetAll();
     cmbProject.ValueMember   = "ID";
     cmbProject.DisplayMember = "ProjectName";
     cmbProject.SelectedValue = 0;
     RequestList();
     cmbRequesttyp.SelectedIndex = -1;
     cmbRequesttyp.DataSource    = _requestTypeBLL.GetAll();
     cmbRequesttyp.ValueMember   = "ID";
     cmbRequesttyp.DisplayMember = "TypeName";
     cmbRequesttyp.SelectedValue = 0;
 }
Ejemplo n.º 6
0
        private void RequestForm_Load(object sender, EventArgs e)
        {
            cmbProject.DataSource        = _projectBLL.GetAll();
            cmbProject.ValueMember       = "ID";
            cmbProject.DisplayMember     = "ProjectName";
            cmbRequestType.DataSource    = _requestTypeBLL.GetAll();
            cmbRequestType.ValueMember   = "ID";
            cmbRequestType.DisplayMember = "TypeName";
            txtEmployee.Text             = MainForm._employee.FullName;



            if (_updateRequest != null)
            {
                txtEmployee.Text             = MainForm._employee.FullName;
                cmbProject.SelectedValue     = _updateRequest.ProjectID;
                cmbRequestType.SelectedValue = _updateRequest.RequestTypeID;
                txtRequstDetail.Text         = _updateRequest.RequestDetail;
                btnRequest.Text = "Talebi Güncelle";
            }
        }
        public IHttpActionResult Get()
        {
            ProjectBLL projectBLL = new ProjectBLL();

            return(Ok(projectBLL.GetAll()));
        }