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