Example #1
0
        private List <Memory> GetTestMemorys()
        {
            var memories     = new List <Memory>();
            var casLatency15 = new MemoryLatency()
            {
                Name = "15"
            };
            var modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };

            memories.Add(new Memory()
            {
                Name = "Corsair Vengeance LPX 16 GB", Modules = 2, Speed = 3000, Price = 75.98M, CASLatency = casLatency15, Type = modulesType
            });
            modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };
            var casLatency16 = new MemoryLatency()
            {
                Name = "16"
            };

            memories.Add(new Memory()
            {
                Name = "G.Skill Trident Z RGB 16 GB", Modules = 2, Speed = 3000, Price = 93.99M, CASLatency = casLatency16, Type = modulesType
            });
            return(memories);
        }
Example #2
0
        private Memory GetMemory()
        {
            var casLatency16 = new MemoryLatency()
            {
                Name = "16"
            };
            var modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };

            return(new Memory()
            {
                Name = "G.Skill Trident Z RGB 16 GB", Modules = 2, Speed = 3000, Price = 93.99M, CASLatency = casLatency16, Type = modulesType
            });
        }
        private void CreateMemories()
        {
            var casLatency15 = new MemoryLatency()
            {
                Name = "15"
            };
            var modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };

            this.memoryService.Create(new Memory()
            {
                Name = "Corsair Vengeance LPX 16 GB", Modules = 2, Speed = 3000, Price = 75.98M, CASLatency = casLatency15, Type = modulesType, ImageSrc = "~/images/Memory/41MnBbpSEkL.jpg"
            });
            modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };
            var casLatency16 = new MemoryLatency()
            {
                Name = "16"
            };

            this.memoryService.Create(new Memory()
            {
                Name = "G.Skill Trident Z RGB 16 GB", Modules = 2, Speed = 3000, Price = 93.99M, CASLatency = casLatency16, Type = modulesType, ImageSrc = "~/images/Memory/41rLxvkrWbL.jpg"
            });
            modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };
            casLatency16 = new MemoryLatency()
            {
                Name = "16"
            };
            this.memoryService.Create(new Memory()
            {
                Name = "Corsair Vengeance RGB Pro 32 GB", Modules = 2, Speed = 3200, Price = 162.99M, CASLatency = casLatency16, Type = modulesType, ImageSrc = "~/images/Memory/87cd8e9d02ffb0997769f4a4d5969669.256p.jpg"
            });
            modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };
            casLatency16 = new MemoryLatency()
            {
                Name = "16"
            };
            this.memoryService.Create(new Memory()
            {
                Name = "G.Skill Ripjaws V Series 16 GB", Modules = 2, Speed = 3200, Price = 69.99M, CASLatency = casLatency16, Type = modulesType, ImageSrc = "~/images/Memory/9597c74b5d0eaefe086ecd07194a1978.256p.jpg"
            });
            modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };
            casLatency16 = new MemoryLatency()
            {
                Name = "16"
            };
            this.memoryService.Create(new Memory()
            {
                Name = "G.Skill Trident Z Neo 32 GB", Modules = 2, Speed = 3600, Price = 179.99M, CASLatency = casLatency16, Type = modulesType, ImageSrc = "~/images/Memory/aace27f895023030d3a7631beb093016.256p.jpg"
            });
            modulesType = new PCItemType()
            {
                Name = "288-pin DIMM"
            };
            casLatency16 = new MemoryLatency()
            {
                Name = "16"
            };
            this.memoryService.Create(new Memory()
            {
                Name = "G.Skill Ripjaws V 32 GB", Modules = 2, Speed = 3600, Price = 149.99M, CASLatency = casLatency16, Type = modulesType, ImageSrc = "~/images/Memory/d62078e82b57dca6362b1485f39e1064.256p.jpg"
            });
        }