ExecuteMoqInstallerActions() public method

public ExecuteMoqInstallerActions ( ) : void
return void
        public void InstallerActionsForDevelopment_ExecuteInstallerActions_WhenNormalOperation_ExpectGroupCreatedAndUserAdded()
        {
            var warewolfGroupOps = MoqInstallerActionFactory.CreateSecurityOperationsObject();
            warewolfGroupOps.DeleteWarewolfGroup();
            var currentUser = WindowsIdentity.GetCurrent(false);

            var installerActionsForDevelopment = new InstallerActionsForDevelopment();

            //------------Execute Test---------------------------
            installerActionsForDevelopment.ExecuteMoqInstallerActions();

            //------------Assert Results-------------------------
            var isGroupCreated = warewolfGroupOps.DoesWarewolfGroupExist();
            Assert.IsTrue(isGroupCreated);
            var isAdminAMember = warewolfGroupOps.IsAdminMemberOfWarewolf();
            Assert.IsTrue(isAdminAMember);
        }
        // ReSharper disable InconsistentNaming
        public void InstallerActionsForDevelopment_ExecuteInstallerActions_WhenGroupExist_ExpectUserNotAdded()
        {
            var warewolfGroupOps = MoqInstallerActionFactory.CreateSecurityOperationsObject();
            warewolfGroupOps.DeleteWarewolfGroup();
            warewolfGroupOps.AddWarewolfGroup();
            var currentUser = System.Security.Principal.WindowsIdentity.GetCurrent(false);

            var installerActionsForDevelopment = new InstallerActionsForDevelopment();

            //------------Execute Test---------------------------
            installerActionsForDevelopment.ExecuteMoqInstallerActions();

            //------------Assert Results-------------------------
            var isGroupCreated = warewolfGroupOps.DoesWarewolfGroupExist();
            Assert.IsTrue(isGroupCreated);
            var result = warewolfGroupOps.IsUserInGroup(currentUser.Name);
            Assert.IsTrue(result);
            var isAdminAMember = warewolfGroupOps.IsAdminMemberOfWarewolf();
            Assert.IsTrue(isAdminAMember);
        }