public void CreateIndexes_Should_Setup_Library_Indexes() { RunTest(() => { _databaseInitializer.CreateIndexes(); using (var context = _context.LiteDatabase) { var collectionCollection = context.GetCollection <Library>(); collectionCollection.EnsureIndex(x => x.Id, true).Should().BeFalse(); collectionCollection.EnsureIndex(x => x.Name).Should().BeTrue(); collectionCollection.EnsureIndex(x => x.Type).Should().BeTrue(); collectionCollection.EnsureIndex(x => x.PrimaryImage).Should().BeTrue(); } }); }