/// <summary> /// Функция проверки коллекции /// </summary> public static Func <IResultError> ValidateCollectionOkFunc(IResultCollection <ITestDomain> testDomains) => () => testDomains.ResultCollectionOk(TestData.GetTestIds);
/// <summary> /// Функция поиска по идентификаторам /// </summary> public static Func <IEnumerable <TestEnum>, IResultCollection <TestEntity> > FindIdsOkFunc(IResultCollection <TestEntity> entitiesResult) => id => entitiesResult.ResultCollectionOk(entities => SearchInEntities.FindEntities(entities, id));
/// <summary> /// Функция записи коллекции /// </summary> public static Func <IResultCollection <TestEnum> > PostCollectionOkFunc(IResultCollection <ITestDomain> testDomains) => () => testDomains.ResultCollectionOk(TestData.GetTestIds);