Пример #1
0
        public PrePlanningApiControllerTest()
        {
            var serviceProvider = services.BuildServiceProvider();

            prePlanningAppService  = serviceProvider.GetService <IPrePlanningAppService>();
            authorizationService   = serviceProvider.GetService <IAuthorizationService>();
            lookUpService          = serviceProvider.GetService <ILookUpService>();
            verificationService    = serviceProvider.GetService <IVerificationService>();
            rootConfigurationsMock = SetupConfigurations.GetApplicationConfiguration(Directory.GetCurrentDirectory());
            _prePlanningController = new PrePlanningController(prePlanningAppService, lookUpService, verificationService, rootConfigurationsMock.Object);
        }
Пример #2
0
 public PrePlanningController(IPrePlanningAppService prePlanningAppService, ILookUpService lookupAppService, IVerificationService verification, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration)
 {
     _verification          = verification;
     _prePlanningAppService = prePlanningAppService;
     _lookupAppService      = lookupAppService;
 }