Exemple #1
0
 public static AppClients Apply(this AppClients clients, AppClientUpdated @event)
 {
     return(clients.Update(@event.Id, @event.Permission));
 }
Exemple #2
0
        public void Should_update_client()
        {
            var client_1 = clients_0.Update("1", Role.Reader);

            client_1["1"].Should().BeEquivalentTo(new AppClient("1", "my-secret", Role.Reader));
        }
Exemple #3
0
        public void Should_update_client()
        {
            var client_1 = clients_0.Update("1", AppClientPermission.Reader);

            client_1["1"].ShouldBeEquivalentTo(new AppClient("1", "my-secret", AppClientPermission.Reader));
        }