public void TestInitialize() { _logic = PcBuildFactory.CreateTestLogic(); _testPart = new PcPart("Test motherboard", PcPart.PcType.Motherboard, "Dit is een test motherboard", new List <Propertie> { new Propertie(1, "1150", "Motherboard"), new Propertie(3, "TestProp1", "RAM"), new Propertie(4, "TestProp1", "Power"), new Propertie(5, "TestProp1", "Memory") }, "2") { _Path = "testPath" }; _motherboard = new PcPart("Asus MB PRIME X470-PRO", PcPart.PcType.Motherboard, "Dit is een test motherboard", new List <Propertie> { new Propertie(1, "1150", "Motherboard"), new Propertie(3, "TestProp1", "RAM"), new Propertie(4, "TestProp1", "Power"), new Propertie(5, "TestProp1", "Memory") }, "1") { _Path = "testPath" }; _processor1150 = new PcPart("test Processor 1150", PcPart.PcType.Processor, "Dit is een test proseccor met een sockettype: 1150", new List <Propertie> { new Propertie(1, "1150", "Motherboard") }, "1") { _Path = "Test" }; _processor1151 = new PcPart("test Processore 1151", PcPart.PcType.Processor, "Dit is een test proseccor met een sockettype: 1151", new List <Propertie> { new Propertie(2, "1151", "Motherboard") }, "1") { _Path = "Test" }; _website = new Website("Bol.com", "https://www.bol.com/nl/s/computer/zoekresultaten/N/16430/sc/computer_all/index.html?searchtext=", "span,class,promo-price", "a,class,product-title;h1,class,pdp-header__title bol_header"); }
public PcBuildController(IConfiguration configuration) { _pcBuildLogic = PcBuildFactory.CreateLogic(configuration); _likeLogic = LikeFactory.CreateLogic(configuration); }
public HomeController(IConfiguration configuration) { _pcBuildLogic = PcBuildFactory.CreateLogic(configuration); }