public void DecoratedProjectionHandlersAreCopiedOnConstruction() { var handler1 = new ElasticsearchProjectionHandler(typeof(object), (client, message, token) => Task.FromResult(false)); var handler2 = new ElasticsearchProjectionHandler(typeof(object), (client, message, token) => Task.FromResult(false)); var projection = new ElasticsearchProjection(new[] { handler1, handler2 }); var sut = new ElasticsearchProjectionBuilder(projection); var result = sut.Build(); Assert.That(result.Handlers, Is.EquivalentTo(new[] { handler1, handler2 })); }
public void DecoratedProjectionHandlersAreCopiedOnConstruction() { var handler1 = new ElasticsearchProjectionHandler(typeof(object), (client, message, token) => Task.FromResult(false)); var handler2 = new ElasticsearchProjectionHandler(typeof(object), (client, message, token) => Task.FromResult(false)); var projection = new ElasticsearchProjection(new[] { handler1, handler2 }); var sut = new ElasticsearchProjectionBuilder(projection); var result = sut.Build(); Assert.That(result.Handlers, Is.EquivalentTo(new[] { handler1, handler2 })); }
public void SetUp() { _sut = new ElasticsearchProjectionBuilder(); }
public void SetUp() { _sut = new ElasticsearchProjectionBuilder(); }