public AnnouncementApiControllerTest() { var serviceProvider = services.BuildServiceProvider(); rootConfigurationsMock = SetupConfigurations.GetApplicationConfiguration(Directory.GetCurrentDirectory()); announcementAppService = serviceProvider.GetService <IAnnouncementAppService>(); _announcementController = new AnnouncementController(rootConfigurationsMock.Object, announcementAppService); }
public AnnouncementController(IAnnouncementAppService announcementAppService) { _announcementAppService = announcementAppService; }
public AnnouncementController(IOptionsSnapshot <RootConfigurations> rootConfiguration, IAnnouncementAppService announcementAppService) : base(rootConfiguration) { _rootConfiguration = rootConfiguration.Value; _announcementAppService = announcementAppService; }