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