-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More improvements to pull request creation
- Loading branch information
1 parent
c7bffb7
commit 25ec58f
Showing
6 changed files
with
187 additions
and
179 deletions.
There are no files selected for viewing
200 changes: 72 additions & 128 deletions
200
src/Stack.Tests/Commands/PullRequests/CreatePullRequestsCommandHandlerTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace Stack.Infrastructure; | ||
|
||
public interface IFileOperations | ||
{ | ||
void Copy(string sourceFileName, string destFileName, bool overwrite); | ||
bool Exists(string path); | ||
string GetTempPath(); | ||
} | ||
|
||
public class FileOperations : IFileOperations | ||
{ | ||
public void Copy(string sourceFileName, string destFileName, bool overwrite) | ||
{ | ||
File.Copy(sourceFileName, destFileName, overwrite); | ||
} | ||
|
||
public bool Exists(string path) | ||
{ | ||
return File.Exists(path); | ||
} | ||
|
||
public string GetTempPath() | ||
{ | ||
return Path.GetTempPath(); | ||
} | ||
} |