public void You_can_fluently_assign_behavior_factories(IOperationBehaviorFactory factory) { var sut = new FakeWorkflowConfiguration(); sut.WithBehaviorFactory(factory); Assert.Equal(1, sut.BehaviorFactories.Count); Assert.Equal(factory, sut.BehaviorFactories[0]); }
public void Fluently_assigning_behavior_factories_returns_configuration() { var sut = new FakeWorkflowConfiguration(); var result = sut.WithBehaviorFactory(new FakeOperationBehaviorFactory()); Assert.Equal(sut, result); }