コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 public void ItShouldCallTheEventFetcherApplyMethodWithEqualsCorrectiveEventIdFilter()
 {
     EventFetcher.Verify(x => x.Apply(It.Is <EqualsCorrectiveEventIdFilter>(f => f.Values.Any(v => v.ToString() == "evt_id"))), Times.Once);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 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);
 }
コード例 #7
0
 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);
 }
コード例 #8
0
 public void ItShouldCallTheEventFetcherApplyMethodWithExistsErrorDeclarationFilter()
 {
     EventFetcher.Verify(x => x.Apply(It.IsAny <ExistsErrorDeclarationFilter>()), Times.Once);
 }
コード例 #9
0
 public void ItShouldCallTheEventFetcherApplyMethodWithSourceDestinationFilter()
 {
     EventFetcher.Verify(x => x.Apply(It.Is <QuantityFilter>(f => f.Operator == FilterComparator.LessThan && f.Value == 38)), Times.Once);
 }
コード例 #10
0
 public void ItShouldCallTheEventFetcherApplyMethodWithOrderDirectionFilter()
 {
     EventFetcher.Verify(x => x.Apply(It.Is <OrderDirectionFilter>(f => f.Direction == OrderDirection.Ascending)), Times.Once);
 }
コード例 #11
0
 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);
 }
コード例 #12
0
 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);
 }
コード例 #13
0
 public void ItShouldCallTheEventFetcherApplyMethodWithOrderFilter()
 {
     EventFetcher.Verify(x => x.Apply(It.Is <OrderFilter>(f => f.Field == EpcisField.BusinessLocation)), Times.Once);
 }
コード例 #14
0
 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);
 }
コード例 #15
0
 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);
 }
コード例 #16
0
 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);
 }
コード例 #17
0
 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);
 }
コード例 #18
0
 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);
 }
コード例 #19
0
 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);
 }
コード例 #20
0
 public void ItShouldCallTheEventFetcherApplyMethodWithEqualsErrorReasonFilter()
 {
     EventFetcher.Verify(x => x.Apply(It.Is <EqualsErrorReasonFilter>(f => f.Values.Any(v => v.ToString() == "reason"))), Times.Once);
 }
コード例 #21
0
 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);
 }
コード例 #22
0
 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);
 }
コード例 #23
0
 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);
 }
コード例 #24
0
 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);
 }
コード例 #25
0
 public void ItShouldCallTheEventFetcherApplyMethodWithLimitFilter()
 {
     EventFetcher.Verify(x => x.Apply(It.Is <LimitFilter>(f => f.Value == 6)), Times.Once);
 }
コード例 #26
0
 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);
 }