/Rhino.Etl.Tests/Dsl/AggregationFixture.cs
http://github.com/ayende/rhino-etl · C# · 36 lines · 32 code · 4 blank · 0 comment · 0 complexity · b02e76c1c0a3cf0d57aab8e334e4be86 MD5 · raw file
- namespace Rhino.Etl.Tests.Dsl
- {
- using System;
- using System.Collections.Generic;
- using System.IO;
- using Aggregation;
- using Core;
- using Joins;
- using Xunit;
- using Rhino.Etl.Core.Operations;
- using Rhino.Etl.Dsl;
-
- public class AggregationFixture : BaseAggregationFixture
- {
- [Fact]
- public void CanCompile()
- {
- EtlProcess process = CreateDslInstance("Dsl/Aggregate.boo");
- Assert.NotNull(process);
- }
- [Fact]
- public void CanPerformAggregationFromDsl()
- {
- EtlProcess process = CreateDslInstance("Dsl/Aggregate.boo");
- process.Register(new GenericEnumerableOperation(rows));
- ResultsToList operation = new ResultsToList();
- process.RegisterLast(operation);
- process.Execute();
- Assert.Equal(1, operation.Results.Count);
- Assert.Equal("milk, sugar, coffee", operation.Results[0]["result"]);
- }
- }
- }