public void UserAuthHandler_Register_Pass_less_than_4_Characters_Invalid()
        {
            var repository    = new FakeUserAuthRepository();
            var logRepository = new FakeAccessLogRepository();
            var handler       = new UserAuthHandler(repository, logRepository);
            var command       = new UserRegisterCommand();

            command.Username = "******";
            command.Password = "******";
            var result = handler.Register(command);

            Assert.IsFalse(result.Success);
        }
        public void UserAuthHandler_Register_Valid()
        {
            var repository    = new FakeUserAuthRepository();
            var logRepository = new FakeAccessLogRepository();
            var handler       = new UserAuthHandler(repository, logRepository);
            var command       = new UserRegisterCommand();

            command.Username = "******";
            command.Password = "******";
            var result = handler.Register(command);

            Assert.IsTrue(result.Success);
        }