public void MongodbStoreManagement() { try { Console.WriteLine("\n\t*****Store MongoDb Implementation*****\n"); InsertStore(); RemoveStore(new MongoStore() { StoreName = "HemKop" }); var productList = new List <MongoProduct>() { new MongoProduct() { Name = "Salt", Price = 34.57m, ProductInStock = 8, ManufacturerDetails = new Manufacturer() { ManufacturerName = "SSS", PhoneNumber = 762892347, Place = "Chalmers" } }, new MongoProduct() { Name = "Muffins", Price = 50.37m, ProductInStock = 16, ManufacturerDetails = new Manufacturer() { ManufacturerName = "AWE", PhoneNumber = 762892856, Place = "Hjlmar" } } }; UpdateStore(new MongoStore() { Id = "5ef5c31458ed8642580d7cc3", StoreName = "Pressbyran", StoreAddress = "777 Chalmers", PinCode = 2222, ProductDetails = productList }); GetAllStores(); GetByStoreId("5ef5c31458ed8642580d7cbf"); //StoreFilter IMongoDbProductRepository productRepository = new MongoDbProductRepository(); IMongoStore storeRepository = new MongoDbStoreRepository(); ProductFilter storeFilter = new ProductFilter(productRepository, storeRepository); //searchBy Store storeFilter.GetStoresBySearch("Lidl"); } catch (Exception ex) { Console.WriteLine(ex.Message); } }