예제 #1
0
        public static void Setup(RMSSystem rmsSystem)
        {
            // Create the Sys_Admin account.
            var systemAdmin = rmsSystem.CreateSystemAccount(IdentityId, Username, "admin");

            // Activate the Account
            systemAdmin.MakeActive();

            // Make an Administrator.
            systemAdmin.MakeAdministrator();
        }
예제 #2
0
        public void CreateSystemAccount()
        {
            var result = rmssystem.CreateSystemAccount(Guid.NewGuid(), "data", "data1");

            result.Should().BeOfType(typeof(SystemAccount));
        }