public static async Task <Author> CreateValidAuthorWithNationality()
        {
            var connectionString = ConnectivityService.GetConnectionString("TEMP");
            var context          = new BookOrganizer2DbContext(connectionString);
            var repository       = new AuthorRepository(context);

            var authorService = new AuthorService(repository);

            var nationality = await NationalityHelpers.CreateValidNationality();

            var command = new Commands.Create
            {
                Id          = new AuthorId(SequentialGuid.NewSequentialGuid()),
                FirstName   = "Patrick",
                LastName    = "Rothfuss",
                DateOfBirth = new DateTime(1973, 6, 6),
                MugshotPath = @"\\filepath\file.jpg",
                Biography   = "There is no book number three.",
                NotesOld    = "...",
                Nationality = nationality,
                Notes       = new List <Note>()
            };

            await authorService.Handle(command);

            return(await repository.GetAsync(command.Id));
        }
        public static Task CreateInvalidAuthor()
        {
            var connectionString = ConnectivityService.GetConnectionString("TEMP");
            var context          = new BookOrganizer2DbContext(connectionString);
            var repository       = new AuthorRepository(context);
            var authorService    = new AuthorService(repository);

            var authorId = new AuthorId(SequentialGuid.NewSequentialGuid());
            var command  = new Commands.Create {
                Id = authorId
            };

            return(authorService.Handle(command));
        }