public static AppClients Apply(this AppClients clients, AppClientUpdated @event) { return(clients.Update(@event.Id, @event.Permission)); }
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)); }
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)); }