Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public void Setup()
 {
     SystemWebAppService = new SystemWebAppServiceMock
     {
         ApplicationDataPath = Helper.GetTestPath(),
         ApplicationName     = "TestDatabase",
     };
     DataAccessService             = new DataAccessService(SystemWebAppService);
     WebAppConfigurationRepository = new WebAppConfigurationRepository(DataAccessService);
 }
Exemplo n.º 3
0
        public void TearDown()
        {
            if (DataAccessService != null)
            {
                DataAccessService.Dispose();
            }

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