示例#1
0
        private void CreateAuthorHelper(out AuthorForCreationDto model, out string authorId)
        {
            authorId = System.Guid.NewGuid().ToString();
            string bookId = Guid.NewGuid().ToString();

            model = ObjectMocks.GetAuthorForCreation(authorId, bookId);
            _auRepo.CreateAuthor(model, authorId);
        }
示例#2
0
 private void CreateAuthorHelper(out string authorId, out dynamic author)
 {
     authorId = Guid.NewGuid().ToString();
     author   = ObjectMocks.GetAuthorForCreation(authorId);
     _authorService.CreateAuthor(author, authorId);
 }