Exemplo n.º 1
0
 public static IErrorModel GetErrorModel(this OutputState outputState, ErrorModelType errorModelType) =>
 outputState.ErrorModels
 .Find(d => d.ErrorModelType == errorModelType)
 .AssertSome($"Failed to find {errorModelType} in error models for {outputState.Name}");
Exemplo n.º 2
0
 public static OutputState WithIsSelected(this OutputState outputState, bool isSelected) =>
 new OutputState(outputState.Name, outputState.ErrorModelType, outputState.ErrorModels, isSelected);