public void TestRegister()
        {
            var login      = "******";
            var password   = "******";
            var hash       = "passHash";
            var userId     = Guid.NewGuid();
            var userEntity = new UserEntity();

            using (mockRepository.Record())
            {
                passwordHasher.Expect(f => f.Hash(password)).Return(hash);
                guidFactory.Expect(f => f.Create()).Return(userId);
                userEntityFactory.Expect(f => f.Create(login, userId, hash)).Return(userEntity);
                userRepository.Expect(f => f.Create(userEntity));
            }

            userService.Register(login, password);
        }