/// <inheritdoc/> public void SetColours(ICaller caller) { using IDealData data = InstanceFactory.GetInstance <IDealData>(); if (data.AnySetColours()) { return; } IDictionary <string, string> setColourDetails = new Dictionary <string, string> { { "DK-BLUE", "Dark Blue" }, { "DK-GREEN", "Dark Green" }, { "LT-BLUE", "Light Blue" }, { "LT-GREEN", "Light Green" }, { "WHITE", "Off White" }, { "ORANGE", "Orange" }, { "PINK", "Pink" }, { "RED", "Red" }, { "YELLOW", "Yellow" }, { "RAINBOW", "Rainbow" } }; foreach (KeyValuePair <string, string> setColourDetail in setColourDetails) { ISetColour setColour = new SetColour( id: Guid.NewGuid(), code: setColourDetail.Key, name: setColourDetail.Value); data.CreateSetColour(setColour); } }