public SlackService(IConfiguration configuration, IKudosDetailRepository kudosDetailRepository, IEmployeeRepository employeeRepository) { this.kudosDetailRepository = kudosDetailRepository; this.employeeRepository = employeeRepository; SlackFixture.Intialize(configuration); slackFixture = SlackFixture.Instance; }
public static void AddSlackClient(this IServiceCollection service, IConfiguration configuration, bool optional = true) { SlackFixture.Intialize(configuration, optional); }
public static void Intialize(IConfiguration configuration, bool optional = true) { instance = optional ? instance ?? new SlackFixture(configuration) : new SlackFixture(configuration); }