/// <summary>Constructs view model ensuring consistency. </summary>
/// <param name="services">List of available services.</param>
/// <param name="serviceToText"> Dictionary holding display text for services as values.</param>
/// <param name="active">Active service.</param>
publicServicesViewModel(
IEnumerable<string>services,
IDictionary<string,string>serviceToText,
stringactive)
{
if(!services.Contains(active))
thrownewArgumentException($"Can not instantiate {typeof(ServicesViewModel).Name}- object. Active lock service {active} must be contained in [{String.Join(",", services)}].");
Log.ForContext<ServicesViewModel>().Error($"Can not set service {value} to services view model. List of services {{{string.Join(";", TextToService)}}} does not hold machting element.");
thrownewArgumentException($"Can not set service {value} to services view model. List of services {{{string.Join(";", TextToService)}}} does not hold machting element.");