/// <summary> /// Функция проверки значения /// </summary> public static Func <ITestDomain, IResultError> ValidateValueOkFunc(IResultCollection <ITestDomain> testDomains) => domain => testDomains.ResultValueOk(tests => SearchInDomains.FirstDomain(tests, domain.Id).Id);
/// <summary> /// Функция поиска по идентификатору /// </summary> public static Func <TestEnum, IResultValue <ITestDomain> > GetByIdOkFunc(IResultCollection <ITestDomain> testDomains) => id => testDomains.ResultValueOk(tests => SearchInDomains.FirstDomain(tests, id));
/// <summary> /// Функция записи значения /// </summary> public static Func <ITestDomain, IResultValue <TestEnum> > PostValueOkFunc(IResultCollection <ITestDomain> testDomains) => domain => testDomains.ResultValueOk(tests => SearchInDomains.FirstDomain(tests, domain.Id).Id);