public void Setup()
 {
     SystemWebAppService = new SystemWebAppServiceMock
     {
         ApplicationDataPath = Helper.GetTestPath(),
         ApplicationName     = "TestDatabase",
     };
     DataAccessService    = new DataAccessService(SystemWebAppService);
     WebAppItemRepository = new WebAppItemRepository(DataAccessService);
 }
Beispiel #2
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;
 }
        public void TearDown()
        {
            if (DataAccessService != null)
            {
                DataAccessService.Dispose();
            }

            WebAppItemRepository = null;
            DataAccessService    = null;
            SystemWebAppService  = null;
        }