public async Task TestFor_GetAllMoviesAsync()
        {
            //Arrange
            var res = false;
            Mock <IAsyncCursor <MovieManagement> > _userCursor = new Mock <IAsyncCursor <MovieManagement> >();

            _userCursor.Setup(_ => _.Current).Returns(_list);
            _userCursor
            .SetupSequence(_ => _.MoveNext(It.IsAny <CancellationToken>()))
            .Returns(true)
            .Returns(false);

            _mockCollection.Setup(op => op.FindSync(It.IsAny <FilterDefinition <MovieManagement> >(),
                                                    It.IsAny <FindOptions <MovieManagement, MovieManagement> >(),
                                                    It.IsAny <CancellationToken>())).Returns(_userCursor.Object);
            _mockContext.Setup(c => c.GetCollection <MovieManagement>(typeof(MovieManagement).Name)).Returns(_mockCollection.Object);
            _mockOptions.Setup(s => s.Value).Returns(settings);
            var context  = new MongoDBContext(_mockOptions.Object);
            var userRepo = new MovieServices(context);
            //Action
            var result = await userRepo.GetAllMoviesAsync();

            //Assert
            foreach (MovieManagement user in result)
            {
                Assert.NotNull(user);
                break;
            }

            //writing tset boolean output in text file, that is present in project directory
            if (result != null)
            {
                res = true;
            }
            File.AppendAllText("../../../../output_revised.txt", "TestFor_GetAllMoviesAsync=" + res + "\n");
        }