public string Get(string setting) { switch (setting) { case "init": _noteRepository.RemoveAllNotes(); _noteRepository.AddNote(new Note() { Id = "1", Body = "Test note 1", CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = 1 }); _noteRepository.AddNote(new Note() { Id = "2", Body = "Test note 2", CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = 1 }); _noteRepository.AddNote(new Note() { Id = "3", Body = "Test note 3", CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = 2 }); _noteRepository.AddNote(new Note() { Id = "4", Body = "Test note 4", CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = 2 }); return("Done"); case "InitAttachments": _attachmentService.AddAttachment(new Attachment() { Id = "1", FileName = "blah.pdf", FileContent = new byte[] { 1, 3, 2, 14, 45 }, CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = 2 }); return("Attachments Done"); } return("Unknown"); }