public static void PopulateFurnitureFactory() { var clientsDAO = new DefaultClientsDAO(); var productsDAO = new DefaultProductsDAO(); var materialsDAO = new DefaultMaterialsDAO(); var clients = GetSampleClients(); var products = GetSampleProducts(); var materials = GetSampleMaterials(); clientsDAO.InsertMany(clients); productsDAO.InsertMany(products); materialsDAO.InsertMany(materials); }
public static ICollection<Material> GetAllMaterials() { var materialsDAO = new DefaultMaterialsDAO(); return materialsDAO.GetAll(); }