skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Interface IDoInstead<TContainer>

Defines members for setting up delegate to execute as mehtod body.

Namespace: Telerik.JustMock.Expectations.Abstraction
Assembly: Telerik.JustMock.dll

Syntax

public interface IDoInstead<TContainer>
Type Parameters
TContainer

Methods

DoInstead(Action)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead(Action action)
Parameters
System.Action action

delegate the method body

Returns
TContainer

DoInstead(Delegate)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead(Delegate delegate)
Parameters
System.Delegate delegate

Target delegate to evaluate.

Returns
TContainer

DoInstead<T1>(Action<T1>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1>(Action<T1> action)
Parameters
System.Action<T1> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

T9

Type of the ninth parameter of the method that this delegate encapsulates

T10

Type of the tenth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

T9

Type of the ninth parameter of the method that this delegate encapsulates

T10

Type of the tenth parameter of the method that this delegate encapsulates

T11

Type of the eleventh parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

T9

Type of the ninth parameter of the method that this delegate encapsulates

T10

Type of the tenth parameter of the method that this delegate encapsulates

T11

Type of the eleventh parameter of the method that this delegate encapsulates

T12

Type of the twelveth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

T9

Type of the ninth parameter of the method that this delegate encapsulates

T10

Type of the tenth parameter of the method that this delegate encapsulates

T11

Type of the eleventh parameter of the method that this delegate encapsulates

T12

Type of the twelveth parameter of the method that this delegate encapsulates

T13

Type of the thirteenth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

T9

Type of the ninth parameter of the method that this delegate encapsulates

T10

Type of the tenth parameter of the method that this delegate encapsulates

T11

Type of the eleventh parameter of the method that this delegate encapsulates

T12

Type of the twelveth parameter of the method that this delegate encapsulates

T13

Type of the thirteenth parameter of the method that this delegate encapsulates

T14

Type of the fourteenth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

T9

Type of the ninth parameter of the method that this delegate encapsulates

T10

Type of the tenth parameter of the method that this delegate encapsulates

T11

Type of the eleventh parameter of the method that this delegate encapsulates

T12

Type of the twelveth parameter of the method that this delegate encapsulates

T13

Type of the thirteenth parameter of the method that this delegate encapsulates

T14

Type of the fourteenth parameter of the method that this delegate encapsulates

T15

Type of the fifteenth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

T9

Type of the ninth parameter of the method that this delegate encapsulates

T10

Type of the tenth parameter of the method that this delegate encapsulates

T11

Type of the eleventh parameter of the method that this delegate encapsulates

T12

Type of the twelveth parameter of the method that this delegate encapsulates

T13

Type of the thirteenth parameter of the method that this delegate encapsulates

T14

Type of the fourteenth parameter of the method that this delegate encapsulates

T15

Type of the fifteenth parameter of the method that this delegate encapsulates

T16

Type of the sixteenth parameter of the method that this delegate encapsulates

DoInstead<T1, T2>(Action<T1, T2>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2>(Action<T1, T2> action)
Parameters
System.Action<T1, T2> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3>(Action<T1, T2, T3>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3>(Action<T1, T2, T3> action)
Parameters
System.Action<T1, T2, T3> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4>(Action<T1, T2, T3, T4>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4>(Action<T1, T2, T3, T4> action)
Parameters
System.Action<T1, T2, T3, T4> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5> action)
Parameters
Action<T1, T2, T3, T4, T5> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6> action)
Parameters
Action<T1, T2, T3, T4, T5, T6> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>)

Specifies the delegate that will execute for the expected method.

Declaration
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> action

Target action delegate to execute as method body

Returns
TContainer

Type Parameters
T1

Type of the first parameter of the method that this delegate encapsulates

T2

Type of the second parameter of the method that this delegate encapsulates

T3

Type of the third parameter of the method that this delegate encapsulates

T4

Type of the fourth parameter of the method that this delegate encapsulates

T5

Type of the fifth parameter of the method that this delegate encapsulates

T6

Type of the sixth parameter of the method that this delegate encapsulates

T7

Type of the seventh parameter of the method that this delegate encapsulates

T8

Type of the eighth parameter of the method that this delegate encapsulates

T9

Type of the ninth parameter of the method that this delegate encapsulates

Extension Methods

FluentHelper.Arrange<T, TResult>(T, Expression<Func<T, TResult>>)
FluentHelper.Arrange<T>(T, Expression<Action<T>>)
FluentHelper.ArrangeSet<T>(T, Action<T>)
FluentHelper.ArrangeLike<T>(T, Expression<Func<T, Boolean>>)
FluentHelper.Assert<T, TReturn>(T, Expression<Func<T, TReturn>>, String)
FluentHelper.Assert<T, TReturn>(T, Expression<Func<T, TReturn>>, Occurs, String)
FluentHelper.Assert<T>(T, Expression<Action<T>>, String)
FluentHelper.Assert<T>(T, Expression<Action<T>>, Occurs, String)
FluentHelper.AssertSet<T>(T, Action<T>, String)
FluentHelper.AssertSet<T>(T, Action<T>, Occurs, String)
FluentHelper.Raise<T>(T, Action<T>, EventArgs)
FluentHelper.Raise<T>(T, Action<T>, Object[])
FluentHelper.Assert<T>(T, String)
FluentHelper.AssertAll<T>(T, String)
Getting Started
  • Unit Testing and Mocking Explained
  • Videos
  • FAQs
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.