diff options
Diffstat (limited to 'src/Notepad/Tasks')
| -rw-r--r-- | src/Notepad/Tasks/IDocumentTasks.cs | 9 | ||||
| -rw-r--r-- | src/Notepad/Tasks/Stubs/StubDocumentTasks.cs | 19 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/Notepad/Tasks/IDocumentTasks.cs b/src/Notepad/Tasks/IDocumentTasks.cs new file mode 100644 index 0000000..10c88e6 --- /dev/null +++ b/src/Notepad/Tasks/IDocumentTasks.cs @@ -0,0 +1,9 @@ +using Notepad.Domain.FileSystem;
+
+namespace Notepad.Tasks {
+ public interface IDocumentTasks {
+ void SaveActiveDocumentTo(IFilePath pathToSaveTheActiveDocumentTo);
+ bool HasAPathToSaveToBeenSpecified();
+ void SaveTheActiveDocument();
+ }
+}
\ No newline at end of file diff --git a/src/Notepad/Tasks/Stubs/StubDocumentTasks.cs b/src/Notepad/Tasks/Stubs/StubDocumentTasks.cs new file mode 100644 index 0000000..cc08542 --- /dev/null +++ b/src/Notepad/Tasks/Stubs/StubDocumentTasks.cs @@ -0,0 +1,19 @@ +using Notepad.Domain.FileSystem;
+using Notepad.Infrastructure.Extensions;
+
+namespace Notepad.Tasks.Stubs {
+ public class StubDocumentTasks : IDocumentTasks {
+ public void SaveActiveDocumentTo(IFilePath pathToSaveTheActiveDocumentTo) {
+ pathToSaveTheActiveDocumentTo
+ .LogInformational("Save document to {0}", pathToSaveTheActiveDocumentTo.RawPathToFile());
+ }
+
+ public bool HasAPathToSaveToBeenSpecified() {
+ return false;
+ }
+
+ public void SaveTheActiveDocument() {
+ this.LogInformational("Save the active document please...");
+ }
+ }
+}
\ No newline at end of file |
