public void GetNumberOfProblem() { var members = _session.List <Member>(2).Get(); _conn.Collection <Member>(CollectionNames.Member).InsertBatch(members); var generatedProblems = _session.List <Problem>(20) .Random(10) .Impose(x => x.UserId, members[0].Id) .Next(10) .Impose(x => x.UserId, members[1].Id) .All().Get(); _problemCollection.InsertBatch(generatedProblems); var count = _problemRepository.Count(); Assert.That(count, Is.EqualTo(20)); }