public void Initialize() { // Mock the repository gitLabMock = new Mock <IGitLabSource>(); gitHubMock = new Mock <IGitHubSource>(); sourceManagerService = new SourceManagerService(gitLabMock.Object, gitHubMock.Object); }
/// <summary> /// Initializes a new instance of the <see cref="WizardController"/> class. /// </summary> /// <param name="sourceManagerService">The source manager service which is used to communicate with the logic layer.</param> public WizardController(ISourceManagerService sourceManagerService) { this.sourceManagerService = sourceManagerService; }