public void ItShouldCallTheEventFetcherApplyMethodWithComparisonParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <ComparisonParameterFilter>(f => f.Comparator == FilterComparator.GreaterOrEqual && f.Field == EpcisField.RecordTime && f.Value is DateTime)), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSourceDestinationFilter() { EventFetcher.Verify(x => x.Apply(It.Is <BusinessTransactionFilter>(f => f.TransactionType == "bizTransType" && f.Values.Any(v => v.ToString() == "test_biztrans"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithComparisonParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <SimpleParameterFilter <string> >(f => f.Field == EpcisField.Disposition && f.Values.Any(v => v.ToString() == "urn:epcglobal:cbv:disp:loading"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithEqualsCorrectiveEventIdFilter() { EventFetcher.Verify(x => x.Apply(It.Is <EqualsCorrectiveEventIdFilter>(f => f.Values.Any(v => v.ToString() == "evt_id"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSimpleParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <SimpleParameterFilter <string> >(f => f.Field == EpcisField.TransformationId && f.Values.Any(v => v.ToString() == "test_trID"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithComparisonParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <SimpleParameterFilter <EventAction> >(f => f.Field == EpcisField.Action && f.Values.Any(v => v.ToString() == "ADD"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSimpleParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <SimpleParameterFilter <EventType> >(f => f.Field == EpcisField.EventType && f.Values.Any(v => v.ToString() == "ObjectEvent"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithExistsErrorDeclarationFilter() { EventFetcher.Verify(x => x.Apply(It.IsAny <ExistsErrorDeclarationFilter>()), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSourceDestinationFilter() { EventFetcher.Verify(x => x.Apply(It.Is <QuantityFilter>(f => f.Operator == FilterComparator.LessThan && f.Value == 38)), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithOrderDirectionFilter() { EventFetcher.Verify(x => x.Apply(It.Is <OrderDirectionFilter>(f => f.Direction == OrderDirection.Ascending)), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSourceDestinationFilter() { EventFetcher.Verify(x => x.Apply(It.Is <ExistCustomFieldFilter>(f => f.IsInner == true && f.Field.Namespace == "namespaceInner" && f.Field.Name == "name" && f.Field.Type == FieldType.Ilmd)), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithMasterdataHierarchyFilter() { EventFetcher.Verify(x => x.Apply(It.Is <MasterdataHierarchyFilter>(f => f.Field == EpcisField.BusinessLocation && f.Values.Any(v => v.ToString() == "loc_id"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithOrderFilter() { EventFetcher.Verify(x => x.Apply(It.Is <OrderFilter>(f => f.Field == EpcisField.BusinessLocation)), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSimpleParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <SimpleParameterFilter <int> >(f => f.Field == EpcisField.RequestId && f.Values.Any(v => v == 6))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithComparisonCustomFieldParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <AttributeFilter>(f => f.Field == EpcisField.BusinessLocation && f.AttributeName == "attributeName" && f.Values.Single() == "some value")), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSourceDestinationFilter() { EventFetcher.Verify(x => x.Apply(It.Is <ComparisonCustomFieldFilter>(f => f.IsInner == false && f.Comparator == FilterComparator.LessOrEqual && f.Field.Namespace == "namespace" && f.Field.Name == "ilmd" && f.Field.Type == FieldType.Ilmd && (double)f.Value == 15)), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithMatchEpcFilter() { EventFetcher.Verify(x => x.Apply(It.Is <MatchEpcFilter>(f => f.EpcType.Contains(EpcType.OutputEpc) && f.Values.Any(v => v.ToString() == "epc_value"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSourceDestinationFilter() { EventFetcher.Verify(x => x.Apply(It.Is <CustomFieldFilter>(f => f.IsInner == false && f.Field.Namespace == "namespace" && f.Field.Name == "ilmd" && f.Field.Type == FieldType.Ilmd && f.Values.Contains("expected"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithComparisonCustomFieldParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <ComparisonCustomFieldFilter>(f => f.Field.Namespace == "namespace" && f.Field.Name == "name" && f.Comparator == FilterComparator.LessThan && f.IsInner == false && f.Value.ToString() == "15")), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithEqualsErrorReasonFilter() { EventFetcher.Verify(x => x.Apply(It.Is <EqualsErrorReasonFilter>(f => f.Values.Any(v => v.ToString() == "reason"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSourceDestinationFilter() { EventFetcher.Verify(x => x.Apply(It.Is <SourceDestinationFilter>(f => f.Type == SourceDestinationType.Source && f.Name == "sourceName" && f.Values.Any(v => v.ToString() == "test_source"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSimpleParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <SimpleParameterFilter <string> >(f => f.Field == EpcisField.ReadPoint && f.Values.Any(v => v.ToString() == "read_point"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithSourceDestinationFilter() { EventFetcher.Verify(x => x.Apply(It.Is <ComparisonCustomFieldFilter>(f => f.IsInner == true && f.Comparator == FilterComparator.GreaterThan && f.Field.Namespace == "namespace" && f.Field.Name == "ilmd" && f.Field.Type == FieldType.Ilmd && (DateTime)f.Value == new DateTime(2019, 08, 24, 10, 05, 02, DateTimeKind.Utc))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithComparisonParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <SimpleParameterFilter <string> >(f => f.Field == EpcisField.BusinessStep && f.Values.Any(v => v.ToString() == "urn:fastnt:demo:bizstep:demo:packing"))), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithLimitFilter() { EventFetcher.Verify(x => x.Apply(It.Is <LimitFilter>(f => f.Value == 6)), Times.Once); }
public void ItShouldCallTheEventFetcherApplyMethodWithComparisonCustomFieldParameterFilter() { EventFetcher.Verify(x => x.Apply(It.Is <CustomFieldFilter>(f => f.Field.Namespace == "namespace" && f.Field.Name == "name" && f.IsInner == true && f.Values.Single().ToString() == "DEA")), Times.Once); }