public async Task GetAllAsync() { if (MovieRepository != null) { try { var result = await MovieRepository.FindAllAsync(); Assert.IsNotNull(result); } catch (Exception e) { Assert.Fail(e.Message); } } else { Assert.Fail(); } }