/// <summary>
 /// Sends the empRole to the manager
 /// </summary>
 private void btnCreate_Click(object sender, RoutedEventArgs e)
 {
     createNewEmpRole();
     if (result == true)
     {
         try
         {
             result = _empManager.CreateRole(_empRole);
             if (result == true)
             {
                 this.DialogResult = true;
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message, "Adding Employee Role Failed.");
         }
     }
 }
        public void TestCreaterolesValidInput()
        {
            bool expectedResult = true;
            bool actualResult;

            // arrange
            EmpRoles testroles = new EmpRoles()
            {
                RoleID      = "GoodID",
                Description = "Good Description",
            };

            // act
            actualResult = rolesManager.CreateRole(testroles);

            // assert - check if roles was added
            Assert.AreEqual(expectedResult, actualResult);
        }