public static List<ApiConfiguration> Get(IHandleGettingConfiguration configuration, IHandleGettingIntegrationClient client)
 {
     var config = new GetAllConfigurations();
     var clientCommand = new GetIntegrationClients();
     configuration.Handle(config);
     client.Handle(clientCommand);
     return config.Configurations.Select(s => new ApiConfiguration(s, clientCommand.Clients.FirstOrDefault(w => w.Id == s.ClientId))).ToList();
 }
 public void SetWeekdays(IHandleGettingConfiguration handler, GetWeekdays command)
 {
     handler.Handle(command);
     Weekdays = command.Weekdays.ToList();
 }
 public void SetFrequency(IHandleGettingConfiguration handler, GetFrequencyTypes command)
 {
     handler.Handle(command);
     Frequency = command.Frequency.ToList();
 }
 public void SetAuthentication(IHandleGettingConfiguration handler, GetAuthenticationTypes command)
 {
     handler.Handle(command);
     Authentication = command.Authentication.ToList();
 }
 public static PushConfiguration Existing(IHandleGettingConfiguration handler, GetApiPushConfiguration command)
 {
     handler.Handle(command);
     return new PushConfiguration(command.Configuration);
 }
 public void SetFrequency(IHandleGettingConfiguration handler)
 {
     var command = new GetFrequencyTypes();
     handler.Handle(command);
     Frequency = command.Frequency.ToList();
 }
 public void SetAuthentication(IHandleGettingConfiguration handler)
 {
     var command = new GetAuthenticationTypes();
     handler.Handle(command);
     Authentication = command.Authentication.ToList();
 }