using System; using framework_business; using framework_library; class ConfirmRegTest { static void Main(string[] args) { EnvBootstrap.LoadFile(@"c:\DEV work\shou-1\.env"); int userId = args.Length > 0 ? int.Parse(args[0]) : 49154; var before = PasswordService.LoadUserById(userId); Console.WriteLine("Before: isActive={0} isDeactivated={1}", before != null ? before.isActive.ToString() : "null", before != null ? before.isDeactivated.ToString() : "null"); bool ok = handler.ConfirmRegistrationUser(userId); var after = PasswordService.LoadUserById(userId); Console.WriteLine("ConfirmRegistrationUser returned: {0}", ok); Console.WriteLine("After: isActive={0} isDeactivated={1}", after != null ? after.isActive.ToString() : "null", after != null ? after.isDeactivated.ToString() : "null"); } }