Пример #1
0
 public WebAppService(IDataAccessService dataAccessService, IWebAppItemRepository webAppItemRepository, IWebAppConfigurationRepository webAppConfigurationRepository, ISystemWebAppService systemService, IFileGeneratorService fileGeneratorService, IFileReaderService fileReaderService, IHelperService helperService)
 {
     DataAccessService             = dataAccessService;
     WebAppItemRepository          = webAppItemRepository;
     WebAppConfigurationRepository = webAppConfigurationRepository;
     SystemService        = systemService;
     FileGeneratorService = fileGeneratorService;
     FileReaderService    = fileReaderService;
     HelperService        = helperService;
 }
Пример #2
0
 public void Setup()
 {
     SystemWebAppService = new SystemWebAppServiceMock
     {
         ApplicationDataPath = Helper.GetTestPath(),
         ApplicationName     = "TestDatabase",
     };
     DataAccessService             = new DataAccessService(SystemWebAppService);
     WebAppConfigurationRepository = new WebAppConfigurationRepository(DataAccessService);
 }
Пример #3
0
        public void TearDown()
        {
            if (DataAccessService != null)
            {
                DataAccessService.Dispose();
            }

            WebAppConfigurationRepository = null;
            DataAccessService             = null;
            SystemWebAppService           = null;
        }