public static Task CreateInvalidPublisher()
        {
            var connectionString = ConnectivityService.GetConnectionString("TEMP");
            var context          = new BookOrganizer2DbContext(connectionString);
            var repository       = new PublisherRepository(context);
            var publisherService = new PublisherService(repository);

            var publisherId = new PublisherId(SequentialGuid.NewSequentialGuid());
            var command     = new Commands.Create {
                Id = publisherId
            };

            return(publisherService.Handle(command));
        }
        public static async Task <Publisher> CreateValidPublisher()
        {
            var connectionString = ConnectivityService.GetConnectionString("TEMP");
            var context          = new BookOrganizer2DbContext(connectionString);
            var repository       = new PublisherRepository(context);

            var publisherService = new PublisherService(repository);

            var command = new Commands.Create
            {
                Id          = new PublisherId(SequentialGuid.NewSequentialGuid()),
                Name        = "SubPop",
                LogoPath    = @"\\filepath\file.jpg",
                Description = "Best books in the world!"
            };

            await publisherService.Handle(command);

            return(await repository.GetAsync(command.Id));
        }