public MandatoryListApiControllerTest() { var serviceProvider = services.BuildServiceProvider(); rootConfigurationsMock = SetupConfigurations.GetApplicationConfiguration(Directory.GetCurrentDirectory()); mandatoryListAppService = serviceProvider.GetService <IMandatoryListAppService>(); _verification = serviceProvider.GetService <IVerificationService>(); _mandatoryListController = new MandatoryListController(mandatoryListAppService, rootConfigurationsMock.Object, _verification); }
public MandatoryListController(IMandatoryListAppService mandatoryListAppService, IOptionsSnapshot <RootConfigurations> rootConfiguration, IVerificationService verification) : base(rootConfiguration) { _mandatoryListAppService = mandatoryListAppService; _verification = verification; }