Пример #1
0
        protected Task On(AttachClient command, CommandContext context)
        {
            return(handler.UpdateAsync <AppDomainObject>(context, a =>
            {
                a.AttachClient(command, keyGenerator.GenerateKey());

                context.Succeed(EntityCreatedResult.Create(a.Clients[command.Id], a.Version));
            }));
        }
Пример #2
0
        public void Should_create_very_long_client_key()
        {
            var key = sut.GenerateKey();

            Assert.Equal(44, key.Length);
        }