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)); })); }
public void Should_create_very_long_client_key() { var key = sut.GenerateKey(); Assert.Equal(44, key.Length); }