/// <summary> /// Constructor /// </summary> /// <param name="gitlabProjectManager">Service to access gitlab projects</param> /// <param name="systemService">Service to access system functionality</param> /// <param name="databaseService">Service to access database</param> /// <param name="gitlabProjectDownloader">Service that cares about downloading git projects</param> /// <param name="dialogService">Service to open dialogs</param> public WindowProjectDetailModel(GitlabProjectManager gitlabProjectManager, ISystemService systemService, DatabaseService databaseService, GitlabProjectDownloader gitlabProjectDownloader, IDialogService dialogService) { _gitlabProjectManager = gitlabProjectManager; _systemService = systemService; _databaseService = databaseService; _gitlabProjectDownloader = gitlabProjectDownloader; _dialogService = dialogService; }
public void InsertIncludeCredentialsInUrl() { var newUrl = GitlabProjectDownloader.IncludeCredentialsInUrl( "https://gitlab.timolia.de/timolia/TCommon.git", "Max", "1234" ); const string expectedUrl = "https://*****:*****@gitlab.timolia.de/timolia/TCommon.git"; Assert.Equal(expectedUrl, newUrl); }
/// <summary> /// Constructor /// </summary> /// <param name="projectDownloader">Service that cares about downloading projects</param> /// <param name="dialogService">Service that is responsible for opening dialogs</param> public PageSettingsModel(GitlabProjectDownloader projectDownloader, IDialogService dialogService) { _gitlabProjectDownloader = projectDownloader; _dialogService = dialogService; }