public async Task LookupAsync_ThrowsOnNullId()
        {
            var dbcontext  = InMemoryContext.GetDbContext();
            var repository = new EntityTableRepository <Movie>(dbcontext);

            var actual = await repository.LookupAsync(null);

            Assert.Fail("ArgumentNullException expected");
        }
        public async Task LookupAsync_ReturnsNullOnMissingData()
        {
            var dbcontext  = InMemoryContext.GetDbContext();
            var repository = new EntityTableRepository <Movie>(dbcontext);
            var testId     = "random-invalid-id";

            var actual = await repository.LookupAsync(testId);

            Assert.IsNull(actual);
        }
        public async Task LookupAsync_ReturnsValidData()
        {
            var dbcontext  = InMemoryContext.GetDbContext();
            var repository = new EntityTableRepository <Movie>(dbcontext);
            var testItem   = RandomMovie();

            var actual = await repository.LookupAsync(testItem.Id);

            Assert.IsNotNull(actual);
            Assert.AreEqual(testItem.Title, actual.Title);
        }