public async Task PostPublisher_CorrectPublisherWithCorrectValuesAndZeroIdSetted_CreatedAtActionResultWithGeneratedId()
        {
            // Arrange
            const int idToSet = 0;

            InitializeInmemoryDatabase(out DbContextOptions <GameReviewsContext> options, GetFakeList());

            Publisher publisherToCreate = new Publisher()
            {
                Name    = "NewDevelope",
                Website = "NewWebsite",
                ID      = idToSet
            };

            // Act
            using (var context = new GameReviewsContext(options))
            {
                PublishersController publishersController = new PublishersController(context);
                var result = (await publishersController.PostPublisher(publisherToCreate)).Result;

                // Assert
                Assert.True(publisherToCreate.ID != idToSet);
                Assert.IsType <CreatedAtActionResult>(result);
            }
        }
        public async Task PostPublisher_CorrectPublisherWithCorrectValuesAndIdNotSet_CreatedAtActionResult()
        {
            // Arrange
            InitializeInmemoryDatabase(out DbContextOptions <GameReviewsContext> options, GetFakeList());

            Publisher publisherToCreate = new Publisher()
            {
                Name    = "NewDevelope",
                Website = "NewWebsite"
            };

            // Act
            using (var context = new GameReviewsContext(options))
            {
                PublishersController publishersController = new PublishersController(context);
                var result = (await publishersController.PostPublisher(publisherToCreate)).Result;

                // Assert
                Assert.True(context.Publishers.Contains(publisherToCreate));
                Assert.IsType <CreatedAtActionResult>(result);
            }
        }