--- title: FluentHelper Methods page_title: FluentHelper Methods | JustMock Documentation description: Documentation page about FluentHelper Methods. previous_url: /methods_t_telerik_justmock_helpers_fluenthelper.html slug: methods_t_telerik_justmock_helpers_fluenthelper published: True fullPath: api/n_telerik_justmock_helpers/t_telerik_justmock_helpers_fluenthelper/methods_t_telerik_justmock_helpers_fluenthelper/methods_t_telerik_justmock_helpers_fluenthelper category: "api" --- # FluentHelper Methods The [FluentHelper](t_telerik_justmock_helpers_fluenthelper) type exposes the following members. ## Methods |Name |Description | --- |--- |--- | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Arrange<T>(T, Expression<Action<T>>)](m_telerik_justmock_helpers_fluenthelper_arrange__1) |Setups the target call to act in a specific way. | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Arrange<T, TResult>(T, Expression<Func<T, TResult>>)](m_telerik_justmock_helpers_fluenthelper_arrange__2) | | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[ArrangeLike<T>](m_telerik_justmock_helpers_fluenthelper_arrangelike__1) | | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[ArrangeSet<T>](m_telerik_justmock_helpers_fluenthelper_arrangeset__1) |Setups target property set operation to act in a specific way. ## Examples
Mock.ArrangeSet(() =>; foo.MyValue = 10).Throws(new InvalidOperationException());
This will throw InvalidOperationException for when foo.MyValue is set with 10. | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Assert<T>(T, String)](m_telerik_justmock_helpers_fluenthelper_assert__1_2) |Asserts all expected calls that are marked as must or to be occurred a certain number of times. | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Assert<T>(T, Expression<Action<T>>, String)](m_telerik_justmock_helpers_fluenthelper_assert__1) |Asserts the specific call | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Assert<T>(T, Expression<Action<T>>, Occurs, String)](m_telerik_justmock_helpers_fluenthelper_assert__1_1) |Asserts the specific call | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Assert<T, TReturn>(T, Expression<Func<T, TResult>>, Boolean)](m_telerik_justmock_helpers_fluenthelper_assert__2) | | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Assert<T, TReturn>(T, Expression<Func<T, TResult>>, Boolean, T)](m_telerik_justmock_helpers_fluenthelper_assert__2_1) | | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[AssertAll<T>](m_telerik_justmock_helpers_fluenthelper_assertall__1) |Asserts all expected setups. | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Raise<T>(T, Action<T>, EventArgs)](m_telerik_justmock_helpers_fluenthelper_raise__1) |Raises the specified event. If the event is not mocked and is declared on a C# or VB class and has the default implementation for add/remove, then that event can also be raised using this method, even with the profiler off. | ![Public method](/icons/pubmethod.gif)![Static member](/icons/static.gif) |[Raise<T>(T, Action<T>,Object[])](m_telerik_justmock_helpers_fluenthelper_raise__1_1) |Raises the specified event. If the event is not mocked and is declared on a C# or VB class and has the default implementation for add/remove, then that event can also be raised using this method, even with the profiler off. | ## See Also [FluentHelper Class](t_telerik_justmock_helpers_fluenthelper) [Telerik.JustMock.Helpers Namespace](n_telerik_justmock_helpers)