diff --git a/build/build.fsx b/build/build.fsx
index 56f9074e217..364e5c2b669 100644
--- a/build/build.fsx
+++ b/build/build.fsx
@@ -69,7 +69,7 @@ let nugetPack = fun name ->
CreateDir nugetOutDir
let dir = sprintf "%s/%s/" buildDir name
- let version = "1.0.0-beta9"
+ let version = "1.0.0-c2"
NuGetPack (fun p ->
{p with
Version = version
diff --git a/dep/Autofac.3.2.0/Autofac.3.2.0.nuspec b/dep/Autofac.3.2.0/Autofac.3.2.0.nuspec
deleted file mode 100644
index cfd6341f879..00000000000
--- a/dep/Autofac.3.2.0/Autofac.3.2.0.nuspec
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- Autofac
- 3.2.0
- Autofac
- Autofac Contributors
- Autofac Contributors
- http://www.opensource.org/licenses/mit-license.php
- http://autofac.org/
- http://code.google.com/p/autofac/logo
- false
- Base assemblies for the Autofac Inversion of Control Container
- Autofac is an IoC container for Microsoft .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity.
- en-US
-
-
\ No newline at end of file
diff --git a/dep/Autofac.3.2.0/lib/net40/Autofac.dll b/dep/Autofac.3.2.0/lib/net40/Autofac.dll
deleted file mode 100644
index a4cdaf101da..00000000000
Binary files a/dep/Autofac.3.2.0/lib/net40/Autofac.dll and /dev/null differ
diff --git a/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.dll b/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.dll
deleted file mode 100644
index a4cdaf101da..00000000000
Binary files a/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.dll and /dev/null differ
diff --git a/dep/Autofac.3.3.1/lib/net40/Autofac.dll b/dep/Autofac.3.3.1/lib/net40/Autofac.dll
new file mode 100644
index 00000000000..926f0b867f3
Binary files /dev/null and b/dep/Autofac.3.3.1/lib/net40/Autofac.dll differ
diff --git a/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.xml b/dep/Autofac.3.3.1/lib/net40/Autofac.xml
similarity index 99%
rename from dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.xml
rename to dep/Autofac.3.3.1/lib/net40/Autofac.xml
index 420b7aa6d18..6cefdea820b 100644
--- a/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.xml
+++ b/dep/Autofac.3.3.1/lib/net40/Autofac.xml
@@ -2621,6 +2621,11 @@
resource lookups using this strongly typed resource class.
+
+
+ Looks up a localized string similar to The type '{0}' does not implement the interface '{1}'..
+
+
Looks up a localized string similar to The implementation type '{0}' is not an open generic type definition..
@@ -4304,6 +4309,35 @@
+
+
+ Registration source providing implicit collection/list/enumerable support.
+
+
+
+ This registration source provides enumerable support to allow resolving
+ the set of all registered services of a given type.
+
+
+ What may not be immediately apparent is that it also means any time there
+ are no items of a particular type registered, it will always return an
+ empty set rather than or throwing an exception.
+ This is by design.
+
+
+ Consider the [possibly majority] use case where you're resolving a set
+ of message handlers or event handlers from the container. If there aren't
+ any handlers, you want an empty set - not or
+ an exception. It's valid to have no handlers registered.
+
+
+ This implicit support means other areas (like MVC support or manual
+ property injection) must take care to only request enumerable values they
+ expect to get something back for. In other words, "Don't ask the container
+ for something you don't expect to resolve."
+
+
+
Retrieve registrations for an unregistered service, to be used
@@ -6830,6 +6864,11 @@
resource lookups using this strongly typed resource class.
+
+
+ Looks up a localized string similar to Unable to generate a function to return type '{0}' with input parameter types [{1}]. The input parameter type list has duplicate types. Try registering a custom delegate type instead of using a generic Func relationship..
+
+
Looks up a localized string similar to Delegate Support (Func<T>and Custom Delegates).
diff --git a/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.dll b/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.dll
new file mode 100644
index 00000000000..926f0b867f3
Binary files /dev/null and b/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.dll differ
diff --git a/dep/Autofac.3.2.0/lib/net40/Autofac.xml b/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.xml
similarity index 99%
rename from dep/Autofac.3.2.0/lib/net40/Autofac.xml
rename to dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.xml
index 420b7aa6d18..6cefdea820b 100644
--- a/dep/Autofac.3.2.0/lib/net40/Autofac.xml
+++ b/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.xml
@@ -2621,6 +2621,11 @@
resource lookups using this strongly typed resource class.
+
+
+ Looks up a localized string similar to The type '{0}' does not implement the interface '{1}'..
+
+
Looks up a localized string similar to The implementation type '{0}' is not an open generic type definition..
@@ -4304,6 +4309,35 @@
+
+
+ Registration source providing implicit collection/list/enumerable support.
+
+
+
+ This registration source provides enumerable support to allow resolving
+ the set of all registered services of a given type.
+
+
+ What may not be immediately apparent is that it also means any time there
+ are no items of a particular type registered, it will always return an
+ empty set rather than or throwing an exception.
+ This is by design.
+
+
+ Consider the [possibly majority] use case where you're resolving a set
+ of message handlers or event handlers from the container. If there aren't
+ any handlers, you want an empty set - not or
+ an exception. It's valid to have no handlers registered.
+
+
+ This implicit support means other areas (like MVC support or manual
+ property injection) must take care to only request enumerable values they
+ expect to get something back for. In other words, "Don't ask the container
+ for something you don't expect to resolve."
+
+
+
Retrieve registrations for an unregistered service, to be used
@@ -6830,6 +6864,11 @@
resource lookups using this strongly typed resource class.
+
+
+ Looks up a localized string similar to Unable to generate a function to return type '{0}' with input parameter types [{1}]. The input parameter type list has duplicate types. Try registering a custom delegate type instead of using a generic Func relationship..
+
+
Looks up a localized string similar to Delegate Support (Func<T>and Custom Delegates).
diff --git a/dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.dll b/dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.dll
similarity index 92%
rename from dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.dll
rename to dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.dll
index 1ee19ad5e41..6b9058ce029 100644
Binary files a/dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.dll and b/dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.dll differ
diff --git a/dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.xml b/dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.xml
similarity index 100%
rename from dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.xml
rename to dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.xml
diff --git a/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.dll b/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.dll
deleted file mode 100644
index bf603e6aed9..00000000000
Binary files a/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.dll and /dev/null differ
diff --git a/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.xml b/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.xml
deleted file mode 100644
index 54ea9aca845..00000000000
--- a/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.xml
+++ /dev/null
@@ -1,3540 +0,0 @@
-
-
-
- FakeItEasy
-
-
-
-
- Provides methods for generating fake objects.
-
-
-
-
- Creates a fake object of the type T.
-
- The type of fake object to create.
- A fake object.
-
-
-
- Creates a fake object of the type T.
-
- The type of fake object to create.
- A lambda where options for the built fake object can be specified.
- A fake object.
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
- A collection of fake objects of the specified type.
-
-
-
- Gets a dummy object of the specified type. The value of a dummy object
- should be irrelevant. Dummy objects should not be configured.
-
- The type of dummy to return.
- A dummy object of the specified type.
- Dummies of the specified type can not be created.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- Configures a call to a faked object.
-
- An expression where the configured member is called.
- A configuration object.
-
-
-
- Gets a configuration object allowing for further configuration of
- any call to the specified faked object.
-
-
- The fake to configure.
-
-
- A configuration object.
-
-
-
-
- Configures a call to a faked object.
-
- The type of member on the faked object to configure.
- An expression where the configured member is called.
- A configuration object.
-
-
-
- Provides an API entry point for constraining arguments of fake object calls.
-
- The type of argument to validate.
-
-
-
- Gets an argument constraint object that will be used to constrain a method call argument.
-
-
-
-
- Gets a constraint that considers any value of an argument as valid.
-
- This is a shortcut for the "Ignored"-property.
-
-
-
- Gets a constraint that considers any value of an argument as valid.
-
-
-
-
- Provides configuration for any (not a specific) call on a faked object.
-
-
-
-
- Gets a configuration object allowing for further configuration of
- any call to the specified faked object.
-
- The faked object to configure.
- A configuration object.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- A collection of method arguments.
-
-
-
-
- The arguments this collection contains.
-
-
-
-
- Initializes a new instance of the class.
-
- The arguments.
- The argument names.
-
-
-
- Initializes a new instance of the class.
-
- The arguments.
- The method.
-
-
-
- Returns an enumerator that iterates through the collection or arguments.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Gets the argument at the specified index.
-
- The type of the argument to get.
- The index of the argument.
- The argument at the specified index.
-
-
-
- Gets the argument with the specified name.
-
- The type of the argument to get.
- The name of the argument.
- The argument with the specified name.
-
-
-
- Gets an empty ArgumentList.
-
-
-
-
- Gets the number of arguments in the list.
-
-
-
-
- Gets the names of the arguments in the list.
-
-
-
-
- Gets the argument at the specified index.
-
- The index of the argument to get.
- The argument at the specified index.
-
-
-
- Provides validation extensions for .
-
-
-
-
- Constrains an argument so that it must be null (Nothing in VB).
-
- The type of the argument.
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Constrains the string argument to contain the specified text.
-
- The constraint manager to match the constraint.
- The string the argument string should contain.
- A dummy argument value.
-
-
-
- Constrains the sequence so that it must contain the specified value.
-
- The constraint manager to match the constraint.
- The value the collection should contain.
- The type of sequence.
- A dummy argument value.
-
-
-
- Constrains the string so that it must start with the specified value.
-
- The constraint manager to match the constraint.
- The value the string should start with.
- A dummy argument value.
-
-
-
- Constrains the string so that it must end with the specified value.
-
- The constraint manager to match the constraint.
- The value the string should end with.
- A dummy argument value.
-
-
-
- Constrains the string so that it must be null or empty.
-
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Constrains argument value so that it must be greater than the specified value.
-
- The constraint manager to match the constraint.
- The value the string should start with.
- The type of argument to constrain.
- A dummy argument value.
-
-
-
- The tested argument collection should contain the same elements as the
- as the specified collection.
-
- The constraint manager to match the constraint.
- The sequence to test against.
- The type of argument to constrain.
- A dummy argument value.
-
-
-
- Tests that the IEnumerable contains no items.
-
- The type of argument.
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Tests that the passed in argument is equal to the specified value.
-
- The type of the argument.
- The constraint manager to match the constraint.
- The value to compare to.
- A dummy argument value.
-
-
-
- Tests that the passed in argument is the same instance (reference) as the specified value.
-
- The type of the argument.
- The constraint manager to match the constraint.
- The reference to compare to.
- A dummy argument value.
-
-
-
- Constrains the argument to be of the specified type.
-
- The type of argument in the method signature.
- The constraint manager.
- The type to constrain the argument with.
- A dummy value.
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- A human readable description of the constraint.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- A human readable description of the constraint format string.
-
-
- Arguments for the format string.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument to be not null (Nothing in VB) and to match
- the specified predicate.
-
- The type of the argument to constrain.
- The constraint manager.
- The predicate that constrains non null values.
- An action that writes a description of the constraint
- to the output.
- A dummy argument value.
-
-
-
- Provides string formatting for arguments of type T when written in call lists.
-
- The type of the arguments which will be formatted by this instance.
-
-
-
- Provides string formatting for arguments when written in
- call lists.
-
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets the type of arguments this formatter works on.
-
-
-
-
- Gets the priority of the formatter, when two formatters are
- registered for the same type the one with the highest
- priority is used.
-
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets the type of arguments this formatter works on.
-
-
-
-
- Gets the priority of the formatter, when two formatters are
- registered for the same type the one with the highest
- priority is used.
-
-
-
-
- Provides extension methods for the common uses.
-
-
-
-
- Replaces the format item in a specified System.String with the text equivalent
- of the value of a corresponding System.Object instance in a specified array using
- invariant culture as .
-
- A composite format string.
- An array containing zero or more objects to format.
- The formatted string.
-
-
-
- Gets an enumerable of tuples where the first value of each tuple is a value
- from the first collection and the second value of each tuple is the value at the same position
- from the second collection.
-
- The type of values in the first collection.
- The type of values in the second collection.
- The first of the collections to combine.
- The second of the collections to combine.
- An enumerable of tuples.
-
-
-
- Joins the collection to a string.
-
- The type of items in the collection.
- The items to join.
- A function that converts from an item to a string value.
- Separator to insert between each item.
- A string representation of the collection.
-
-
-
- Gets a dictionary containing the first element from the sequence that has a key specified by the key selector.
-
- The type of items in the sequence.
- The type of the key.
- The sequence.
- The key selector.
- A dictionary.
-
-
-
- Provides the base for rules that can be built using the FakeConfiguration.
-
-
-
-
- Represents a call rule that has a description of the calls the
- rule is applicable to.
-
-
-
-
- Allows for intercepting call to a fake object and
- act upon them.
-
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
- Writes a description of calls the rule is applicable to.
-
- The writer.
-
-
-
- Gets if this rule is applicable to the specified call.
-
- The call to validate.
- True if the rule applies to the call.
-
-
-
- Writes a description of calls the rule is applicable to.
-
- The writer to write the description to.
-
-
-
- Gets or sets an action that is called by the Apply method to apply this
- rule to a fake object call.
-
-
-
-
- Gets a collection of actions that should be invoked when the configured
- call is made.
-
-
-
-
- Gets or sets values to apply to output and reference variables.
-
-
-
-
- Gets or sets a value indicating whether the base method of the fake object call should be
- called when the fake object call is made.
-
-
-
-
- Gets or sets the number of times the configured rule should be used.
-
-
-
-
- Gets a description of calls the rule is applicable to.
-
-
-
-
-
- Configuration for any call to a faked object.
-
-
-
-
- Provides a way to configure predicates for when a call should be applied.
-
- The type of fake object that is going to be configured..
-
-
-
- Applies a predicate to constrain which calls will be considered for interception.
-
- A predicate for a fake object call.
- An action that writes a description of the predicate
- to the output.
- The configuration object.
-
-
-
- Provides configuration methods for methods that does not have a return value and
- allows the use to specify validations for arguments.
-
-
-
-
- Provides configuration methods for methods that does not have a return value.
-
-
-
-
- Configuration that lets the developer specify that an exception should be
- thrown by a fake object call.
-
-
-
-
- Hides standard Object members to make fluent interfaces
- easier to read. Found in the source of Autofac:
- Based on blog post here:
-
-
-
-
-
- Hides the ToString-method.
-
- A string representation of the implementing object.
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Returns a hash code for this instance.
-
-
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
-
-
-
-
- Gets the type.
-
- The exact runtime type of the current instance.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- A function that creates the exception to throw.
- Configuration object.
-
-
-
- Configuration for callbacks of fake object calls.
-
- The type of interface to return.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The action to invoke.
- A configuration object.
-
-
-
- Configuration that lets you specify that a fake object call should call it's base method.
-
-
-
-
- When the configured method or methods are called the call
- will be delegated to the base method of the faked method.
-
- A configuration object.
- The fake object is of an abstract type or an interface
- and no base method exists.
-
-
-
- Lets the developer configure output values of out and ref parameters.
-
-
-
-
- Specifies output values for out and ref parameters. Specify the values in the order
- the ref and out parameters has in the configured call, any non out and ref parameters are ignored.
-
- The values.
- A configuration object.
-
-
-
- Allows the developer to assert on a call that's configured.
-
-
-
-
- Asserts that the configured call has happened the number of times
- constrained by the repeatConstraint parameter.
-
- A constraint for how many times the call
- must have happened.
- The call has not been called a number of times
- that passes the repeat constraint.
-
-
-
- Configures the specified call to do nothing when called.
-
- A configuration object.
-
-
-
- Provides configurations to validate arguments of a fake object call.
-
- The type of interface to return.
-
-
-
- Configures the call to be accepted when the specified predicate returns true.
-
- The argument predicate.
- A configuration object.
-
-
-
- Matches calls that has the return type specified in the generic type parameter.
-
- The return type of the members to configure.
- A configuration object.
-
-
-
- Manages registration of a set of components in a DictionaryContainer.
-
-
-
-
- Registers the components of this module.
-
- The container to register components in.
-
-
-
- A factory that creates instances of the RecordingCallRuleType.
-
-
-
-
- Creates the specified fake object.
-
- The type of the fake.
- The fake object the rule belongs to.
- The rule that's being recorded.
- A RecordingCallRule instance.
-
-
-
- A factory responsible for creating start configuration for fake objects.
-
-
-
-
- Creates a start configuration for the specified fake object that fakes the
- specified type.
-
- The type of the fake object.
- The fake object to configure.
- A configuration object.
-
-
-
- An exception that can be thrown when something goes wrong with the configuration
- of a fake object.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
-
- The parameter is null.
-
-
- The class name is null or is zero (0).
-
-
-
-
- Handles the configuration of fake object given an expression specifying
- a call on a faked object.
-
-
-
-
- Lets you set up expectations and configure repeat for the configured call.
-
-
-
-
- Provides configuration for method calls that has a return value.
-
-
-
-
- Specifies the number of times for the configured event.
-
- The number of times to repeat.
-
-
-
- A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration
- interfaces.
-
-
-
-
- Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>.
-
- The type of fake object that is configured.
-
-
-
- Configures a call that returns a value and allows the use to
- specify validations for arguments.
-
- The type of the member.
-
-
-
- Configures a call that returns a value.
-
- The type of the member.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- A function that produces the return value.
- A configuration object.
-
-
-
- Configurations for when a configured call is recorded.
-
-
-
-
- Provides configuration from VisualBasic.
-
-
-
-
- Provides methods for configuring a fake object.
-
- The type of fake object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The type of the return value of the member.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call is made to any method on the
- object.
-
- A configuration object.
-
-
-
- A call rule that has been recorded.
-
-
-
-
- A call rule that "sits and waits" for the next call, when
- that call occurs the recorded rule is added for that call.
-
- The type of the fake.
-
-
-
- Provides access to a set of calls and a call matcher for these calls.
-
-
-
-
- Provides access to a call matcher.
-
-
-
-
- Gets a call predicate that can be used to check if a fake object call matches
- the specified constraint.
-
-
-
-
- Gets the set of calls.
-
-
-
-
- Represents a delegate that creates a configuration object from
- a fake object and the rule to build.
-
- The rule that's being built.
- The fake object the rule is for.
- A configuration object.
-
-
-
- Represents a predicate that matches a fake object call.
-
-
-
-
- Gets a value indicating whether the call matches the predicate.
-
- The call to match.
- True if the call matches the predicate.
-
-
-
- Provides configuration of faked objects.
-
-
-
-
- Gets a configuration for the specified faked object.
-
- The type of the fake.
- The faked object to configure.
- A configuration object.
- The specified object is not a faked object.
- The fakedObject parameter was null.
-
-
-
- Access all types in all assemblies in the same directory as the FakeItEasy assembly.
-
-
-
-
- Provides a set of types that are available.
-
-
-
-
- Gets a collection of available types.
-
- The available types.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Gets a collection of available types.
-
- The available types.
-
-
-
- Represents an argument and a dummy value to use for that argument.
-
-
-
-
- Initializes a new instance of the class.
-
- A value indicating if the dummy value was successfully resolved.
- The type of argument.
- The resolved value.
-
-
-
- Gets a value indicating whether a dummy argument value was successfully
- resolved.
-
-
-
-
- Gets the type of the argument.
-
-
-
-
- Gets the resolved value.
-
-
-
-
- Holds a formatter as well as the distance between a type to be formatted
- and the type for which the formatted is registered.
-
-
-
-
- Represents an event that happens when a call has been intercepted by a proxy.
-
-
-
-
- Initializes a new instance of the class.
-
- The call.
-
-
-
- Gets the call that was intercepted.
-
- The call.
-
-
-
- Keeps track of metadata for interceptions.
-
-
-
-
- Gets whether the rule has been called the number of times specified or not.
-
- True if the rule has not been called the number of times specified.
-
-
-
- Gets or sets the number of times the rule has been used.
-
-
-
-
- Gets or sets the rule this metadata object is tracking.
-
-
-
-
- Manages attaching of argument constraints.
-
- The type of argument to constrain.
-
-
-
- Constrains the argument with a predicate.
-
- The predicate that should constrain the argument.
- An action that will be write a description of the constraint.
- A dummy argument value.
-
-
-
- Inverts the logic of the matches method.
-
-
-
-
- Validates an argument, checks that it's valid in a specific fake call.
-
-
-
-
- Writes a description of the argument constraint to the specified writer.
-
-
- The writer.
-
-
-
-
- Gets whether the argument is valid.
-
- The argument to validate.
- True if the argument is valid.
-
-
-
- Default implementation of .
-
-
-
-
- Attaches a fake manager to the proxy so that intercepted
- calls can be configured.
-
-
-
-
- Attaches a to the specified proxy, listening to
- the event raiser.
-
- The type of the fake object proxy.
- The proxy to attach to.
- The event raiser to listen to.
-
-
-
- Gets the fake manager associated with the proxy.
-
- The proxy to get the manager from.
- A fake manager.
-
-
-
- Attaches a to the specified proxy, listening to
- the event raiser.
-
- The type of the fake object proxy.
- The proxy to attach to.
- The event raiser to listen to.
-
-
-
- Gets the fake manager associated with the proxy.
-
- The proxy to get the manager from.
- A fake manager.
-
-
-
- Represents an object that can be tagged with another object. When implemented
- by a proxy returned from an FakeItEasy uses the tag
- to store a reference to the that handles that proxy.
-
-
-
-
- Gets or sets the tag.
-
-
-
-
- The default implementation of the IFakeObjectCallFormatter interface.
-
-
-
-
- Provides string formatting for fake object calls.
-
-
-
-
- Gets a human readable description of the specified
- fake object call.
-
- The call to get a description for.
- A description of the call.
-
-
-
- Gets a human readable description of the specified
- fake object call.
-
- The call to get a description for.
- A description of the call.
-
-
-
- Handles configuring of fake objects to delegate all their calls to a wrapped instance.
-
-
-
-
- Manages configuration of fake objects to wrap instances.
-
-
-
-
- Configures the specified faked object to wrap the specified instance.
-
- The faked object to configure.
- The instance to wrap.
- The recorder to use, null if no recording should be made.
-
-
-
- Configures the specified faked object to wrap the specified instance.
-
- The faked object to configure.
- The instance to wrap.
- The recorder to use, null if no recording should be made.
-
-
-
- A fake object container where delegates can be registered that are used to
- resolve fake objects.
-
-
-
-
- A container that can create fake objects.
-
-
-
-
- Handles global configuration of fake object.
-
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- Creates a dummy object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of dummy object to create.
- The dummy object that was created if the method returns true.
- True if a dummy object can be created.
-
-
-
- Initializes a new instance of the class.
- Creates a new instance of the DelegateFakeObjectContainer.
-
-
-
-
- Creates a fake object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of dummy object to create.
- The fake object that was created if the method returns true.
- True if a fake object can be created.
-
-
-
- Configures the fake.
-
- The type of fake.
- The fake object.
-
-
-
- Registers the specified fake delegate.
-
- The type of the return value of the method that encapsulates.
- The fake delegate.
-
-
-
- A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and
- IFakeConfigurations.
-
-
-
-
- Initializes a new instance of the class.
-
- The dummy definitions.
- The fake configurators.
-
-
-
- Creates a fake object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of fake object to create.
- The fake object that was created if the method returns true.
- True if a fake object can be created.
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- An exception that is thrown when there was an error creating a fake object.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
-
- The parameter is null.
-
-
- The class name is null or is zero (0).
-
-
-
- Auto fake property rule.
-
- The central point in the API for proxied fake objects handles interception
- of fake object calls by using a set of rules. User defined rules can be inserted
- by using the AddRule-method.
-
- Event rule.
- Object member rule.
- Property behavior rule.
- Property setter rule.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Adds a call rule to the fake object.
-
- The rule to add.
-
-
-
- Adds a call rule last in the list of user rules, meaning it has the lowest priority possible.
-
- The rule to add.
-
-
-
- Removes the specified rule for the fake object.
-
- The rule to remove.
-
-
-
- Adds an interception listener to the manager.
-
- The listener to add.
-
-
-
- Removes any specified user rules.
-
-
-
-
- Gets the faked object.
-
-
-
-
- Gets the faked type.
-
-
-
-
- Gets the interceptions that are currently registered with the fake object.
-
-
-
-
- Gets a collection of all the calls made to the fake object within the current scope.
-
-
-
-
- A delegate responsible for creating FakeObject instances.
-
- An instance of .
-
-
-
- Represents a call to a fake object at interception time.
-
-
-
-
- Represents a fake object call that can be edited.
-
-
-
-
- Represents a call to a fake object.
-
-
-
-
- Gets the method that's called.
-
-
-
-
- Gets the arguments used in the call.
-
-
-
-
- Gets the faked object the call is performed on.
-
-
-
-
- Sets the return value of the call.
-
- The return value to set.
-
-
-
- Calls the base method of the faked type.
-
-
-
-
- Sets the value of the argument at the specified index in the parameters list.
-
- The index of the argument to set the value of.
- The value to set to the argument.
-
-
-
- Freezes the call so that it can no longer be modified.
-
- A completed fake object call.
-
-
-
- Sets that the call should not be recorded by the fake manager.
-
-
-
-
- Represents a scope for fake objects, calls configured within a scope
- are only valid within that scope. Only calls made within a scope
- are accessible from within a scope so for example asserts will only
- assert on those calls done within the scope.
-
-
-
-
- Provides access to all calls made to fake objects within a scope.
- Scopes calls so that only calls made within the scope are visible.
-
-
-
-
- Creates a new scope and sets it as the current scope.
-
- The created scope.
-
-
-
- Creates a new scope and sets it as the current scope, using the specified
- container as the container for the new scope.
-
- The container to use for the new scope.
- The created scope.
-
-
-
- Closes the scope.
-
-
-
-
- Adds an intercepted call to the current scope.
-
- The fake object.
- The call that is intercepted.
-
-
-
- Adds a fake object call to the current scope.
-
- The fake object.
- The rule to add.
-
-
-
- Represents a completed call to a fake object.
-
-
-
-
- Gets the value set to be returned from the call.
-
-
-
-
- Used by the event raising rule of fake objects to get the event arguments used in
- a call to Raise.With.
-
-
-
-
- Gets the sender of the event.
-
-
-
-
- Gets the event arguments of the event.
-
-
-
-
- Represents a listener for fake object calls, can be plugged into a
- FakeManager instance to listen to all intercepted calls.
-
- The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any
- previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted
- method of any previously added listener.
-
-
-
- Called when the interception begins but before any call rules
- has been applied.
-
- The intercepted call.
-
-
-
- Called when the interception has been completed and rules has been
- applied.
-
- The intercepted call.
- The rule that was applied to the call.
-
-
-
- Handles comparisons of instances of .
-
-
-
-
- Gets a value indicating whether the two instances of would invoke the same method
- if invoked on an instance of the target type.
-
- The type of target for invocation.
- The first .
- The second .
- True if the same method would be invoked.
-
-
-
- A null implementation for the IFakeObjectContainer interface.
-
-
-
-
- Always returns false and sets the fakeObject to null.
-
- The type of dummy object to create.
- Output variable for the fake object that will always be set to null.
- Always return false.
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- Provides instances from type catalogues.
-
-
-
-
- Gets an instance per type in the catalogue that is a descendant
- of the specified type.
-
- The type of instances to get.
- A sequence of instances of the specified type.
-
-
-
- A call rule that applies to any call and just delegates the
- call to the wrapped object.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance.
-
-
- The object to wrap.
-
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
-
- An interface to be implemented by classes that can generate proxies for FakeItEasy.
-
-
-
-
- Generates a proxy of the specified type and returns a result object containing information
- about the success of the generation and the proxy if it was generated.
-
- The type of proxy to generate.
- Interfaces to be implemented by the proxy.
- Arguments to pass to the constructor of the type in .
- The custom attribute builders.
- A result containing the generated proxy.
-
-
-
- Generates a proxy of the specified type and returns a result object containing information
- about the success of the generation and the proxy if it was generated.
-
- The type of proxy to generate.
- Interfaces to be implemented by the proxy.
- Arguments to pass to the constructor of the type in .
- A result containing the generated proxy.
-
-
-
- Gets a value indicating whether the specified member can be intercepted by the proxy generator.
-
- The member to test.
- The instance the method will be called on.
- The reason the method can not be intercepted.
- True if the member can be intercepted.
-
-
-
- An object that raises an event every time a call to a proxy has been intercepted.
-
-
-
-
- Raised when a call is intercepted.
-
-
-
-
- An adapter that adapts an to a .
-
-
-
-
- Initializes a new instance of the class.
-
- The invocation.
-
-
-
- Freezes the call so that it can no longer be modified.
-
- A completed fake object call.
-
-
-
- Calls the base method, should not be used with interface types.
-
-
-
-
- Sets the specified value to the argument at the specified index.
-
- The index of the argument to set the value to.
- The value to set to the argument.
-
-
-
- Sets the return value of the call.
-
- The return value.
-
-
-
- Returns a description of the call.
-
-
- A that represents this instance.
-
-
-
-
- Gets a human readable description of the call.
-
-
-
-
-
- Gets the value set to be returned from the call.
-
-
-
-
- Gets the method that's called.
-
-
-
-
- Gets the arguments used in the call.
-
-
-
-
- Gets the faked object the call is performed on.
-
-
-
-
- A strongly-typed resource class, for looking up localized strings, etc.
-
-
-
-
- Returns the cached ResourceManager instance used by this class.
-
-
-
-
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
-
-
-
-
- Looks up a localized string similar to No constructor matches the passed arguments for constructor..
-
-
-
-
- Looks up a localized string similar to Arguments for constructor specified for interface type..
-
-
-
-
- Looks up a localized string similar to The type of proxy "{0}" is sealed..
-
-
-
-
- Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}..
-
-
-
-
- Looks up a localized string similar to No usable default constructor was found on the type {0}..
-
-
-
-
- The default implementation of the IFakeAndDummyManager interface.
-
-
-
-
- Handles the creation of fake and dummy objects.
-
-
-
-
- Creates a dummy of the specified type.
-
- The type of dummy to create.
- The created dummy.
- The current IProxyGenerator is not able to generate a fake of the specified type and
- the current IFakeObjectContainer does not contain the specified type.
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake object to generate.
- Options for building the fake object.
- A fake object.
- The current IProxyGenerator is not able to generate a fake of the specified type.
-
-
-
- Tries to create a dummy of the specified type.
-
- The type of dummy to create.
- Outputs the result dummy when creation is successful.
- A value indicating whether the creation was successful.
-
-
-
- Tries to create a fake object of the specified type.
-
- The type of fake to create.
- Options for the creation of the fake.
- The created fake object when creation is successful.
- A value indicating whether the creation was successful.
-
-
-
- Default implementation of the IFakeCreator-interface.
-
-
-
-
- A facade used by the public API for testability.
-
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake to create.
- Options for the created fake object.
- The created fake object.
- Was unable to generate the fake in the current configuration.
-
-
-
- Creates a dummy object, this can be a fake object or an object resolved
- from the current IFakeObjectContainer.
-
- The type of dummy to create.
- The created dummy.
- Was unable to generate the fake in the current configuration and
- no dummy was registered in the container for the specified type..
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
- A collection of fake objects of the specified type.
-
-
-
- Initializes a new instance of the class.
-
- The fake and dummy manager.
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake to create.
- Options for the created fake object.
- The created fake object.
- Was unable to generate the fake in the current configuration.
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
-
- A collection of fake objects of the specified type.
-
-
-
-
- Creates a dummy object, this can be a fake object or an object resolved
- from the current IFakeObjectContainer.
-
- The type of dummy to create.
- The created dummy.
- Was unable to generate the fake in the current configuration and
- no dummy was registered in the container for the specified type..
-
-
-
- Provides options for fake wrappers.
-
- The type of the fake object generated.
-
-
-
- Provides options for generating fake object.
-
- The type of fake object generated.
-
-
-
- Specifies arguments for the constructor of the faked class.
-
- The arguments to pass to the constructor of the faked class.
- Options object.
-
-
-
- Specifies arguments for the constructor of the faked class by giving an expression with the call to
- the desired constructor using the arguments to be passed to the constructor.
-
- The constructor call to use when creating a class proxy.
- Options object.
-
-
-
- Specifies that the fake should delegate calls to the specified instance.
-
- The object to delegate calls to.
- Options object.
-
-
-
- Specifies that the fake should be created with these additional attributes.
-
- The attributes to build into the proxy.
- Options object.
-
-
-
- Sets up the fake to implement the specified interface in addition to the
- originally faked class.
-
- The type of interface to implement.
- Options object.
- The specified type is not an interface.
- The specified type is null.
-
-
-
- Specifies an action that should be run over the fake object
- once it's created.
-
- An action to perform.
- Options object.
-
-
-
- Specifies a fake recorder to use.
-
- The recorder to use.
- Options object.
-
-
-
- Initializes a new instance of the class.
-
- The container.
- The fake object creator.
-
-
-
- Contains the result of a call to TryCreateProxy of IProxyGenerator.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a failed proxy
- generation attempt.
-
-
- The reason the proxy generation failed.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a failed proxy
- generation attempt due to an exception being caught.
-
-
- The reason the proxy generation failed.
-
-
- The exception thrown from the creation attempt.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a successful proxy
- generation.
-
-
- The proxy that was generated.
-
-
- An event raiser that raises
- events when calls are intercepted to the proxy.
-
-
-
-
- Gets a value indicating whether the proxy was successfully created.
-
-
-
-
- Gets the generated proxy when it was successfully created.
-
-
-
-
- Gets the event raiser that raises events when calls to the proxy are
- intercepted.
-
-
-
-
- Gets the reason for failure when the generation was not successful.
-
-
-
-
- Represents a text writer that writes to the output.
-
-
-
-
- Writes the specified value to the output.
-
- The value to write.
- The writer for method chaining.
-
-
-
- Formats the specified argument value as a string and writes
- it to the output.
-
- The value to write.
- The writer for method chaining.
-
-
-
- Indents the writer.
-
- A disposable that will unindent the writer when disposed.
-
-
-
- Represents a definition of how a fake object of the type T should
- be created.
-
- The type of fake.
-
-
-
- Represents a definition of how dummies of the specified type should be created.
-
-
-
-
- Creates the fake.
-
- The fake object.
-
-
-
- Gets the type of fake object the definition is for.
-
-
-
-
- Creates the dummy.
-
- The dummy object.
-
-
-
- Creates the dummy.
-
- The dummy object.
-
-
-
- Gets the type the definition is for.
-
- For type.
-
-
-
- A strongly-typed resource class, for looking up localized strings, etc.
-
-
-
-
- Returns the cached ResourceManager instance used by this class.
-
-
-
-
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
-
-
-
-
- Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set..
-
-
-
-
- Looks up a localized string similar to The specified argument name does not exist in the ArgumentList..
-
-
-
-
- Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type..
-
-
-
-
- Looks up a localized string similar to An argument validation was not configured correctly..
-
-
-
-
- Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times..
-
-
-
-
- Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times..
-
-
-
-
- Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake.
-
- The following constructors failed:
- {1}.
-
-
-
-
- Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked..
-
-
-
-
- Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter..
-
-
-
-
- Looks up a localized string similar to
-
- The current proxy generator failed to create a proxy with the specified arguments for the constructor:
-
- Reason for failure:
- - {0}
-
- .
-
-
-
-
- Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}".
-
- 1. The type is not registered in the current IFakeObjectContainer.
- 2. The current IProxyGenerator failed to generate a proxy for the following reason:
-
- {1}.
-
-
-
-
- Looks up a localized string similar to Unable to create fake object..
-
-
-
-
- Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead..
-
-
-
-
- Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body..
-
-
-
-
- Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator..
-
-
-
-
- Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid..
-
-
-
-
- Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}..
-
-
-
-
- Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call..
-
-
-
-
- Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid..
-
-
-
-
- Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted..
-
-
-
-
- Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised..
-
-
-
-
- Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call..
-
-
-
-
- Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one..
-
-
-
-
- Looks up a localized string similar to The specified call is not made on a fake object..
-
-
-
-
- Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}..
-
-
-
-
- Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this..
-
-
-
-
- Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:.
-
-
-
-
- Looks up a localized string similar to The number of argument names does not match the number of arguments..
-
-
-
-
- An exception thrown when an expectation is not met (when asserting on fake object calls).
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
-
- The parameter is null.
-
-
- The class name is null or is zero (0).
-
-
-
-
- Represents a class that can parse a lambda expression
- that represents a method or property call.
-
-
-
-
- Parses the specified expression.
-
- The expression to parse.
- The parsed expression.
-
-
-
- Handles the matching of fake object calls to expressions.
-
-
-
-
- Initializes a new instance of the class.
-
- The call specification.
- The constraint factory.
- The method info manager to use.
- A parser to use to parse call expressions.
-
-
-
- Matches the specified call against the expression.
-
- The call to match.
- True if the call is matched by the expression.
-
-
-
- Gets a description of the call.
-
- Description of the call.
-
-
-
- Gets a human readable description of calls that will be matched by this
- matcher.
-
-
-
-
- An implementation of the interface that uses
- expressions for evaluating if the rule is applicable to a specific call.
-
-
-
-
- Initializes a new instance of the class.
-
- The expression matcher to use.
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Handles the instantiation of ExpressionCallRule instance.
-
- An expression specifying the call.
- A rule instance.
-
-
-
- Manages breaking call specification expression into their various parts.
-
-
-
-
- Manages breaking call specification expression into their various parts.
-
-
-
-
- Gets the fake object an expression is called on.
-
- The call expression.
- The FakeManager instance that manages the faked object the call is made on.
- The fakeObjectCall is null.
- The specified expression is not an expression where a call is made to a faked object.
-
-
-
- Gets the fake object an expression is called on.
-
- The call expression.
- A FakeObject.
- The fakeObjectCall is null.
- The specified expression is not an expression where a call is made to a faked object.
-
-
-
- Provides extension methods for configuring and asserting on faked objects
- without going through the static methods of the Fake-class.
-
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The type of fake object to configure.
- The type of the return value of the member.
- The faked object to configure.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The faked object to configure.
- The type of fake object to configure.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call is made to any method on the
- object.
-
- The type of the fake.
- The faked object.
- A configuration object.
-
-
-
- Provides an extension method for configuring fake objects.
-
-
-
-
- Gets an object that provides a fluent interface syntax for configuring
- the fake object.
-
- The type of the fake object.
- The fake object to configure.
- A configuration object.
- The fakedObject was null.
- The object passed in is not a faked object.
-
-
-
- Provides static methods for accessing fake objects.
-
-
-
-
- Gets the fake object that manages the faked object.
-
- The faked object to get the manager object for.
- The fake object manager.
-
-
-
- Creates a new scope and sets it as the current scope. When inside a scope the
- getting the calls made to a fake will return only the calls within that scope and when
- asserting that calls were made, the calls must have been made within that scope.
-
- The created scope.
-
-
-
- Creates a new scope and sets it as the current scope. When inside a scope the
- getting the calls made to a fake will return only the calls within that scope and when
- asserting that calls were made, the calls must have been made within that scope.
-
- The container to use within the specified scope.
- The created scope.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- Gets all the calls made to the specified fake object.
-
- The faked object.
- A collection containing the calls to the object.
- The object passed in is not a faked object.
-
-
-
- Clears the configuration of the faked object.
-
- The faked object to clear the configuration of.
-
-
-
- Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified
- fixture.
-
- The object to initialize.
-
-
-
- Represents a fake object that provides an API for configuring a faked object, exposed by the
- FakedObject-property.
-
- The type of the faked object.
-
-
-
- Initializes a new instance of the class.
- Creates a new fake object.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new fake object using the specified options.
-
-
- Options used to create the fake object.
-
-
-
-
- Configures calls to the specified member.
-
- An expression specifying the call to configure.
- A configuration object.
-
-
-
- Configures calls to the specified member.
-
- The type of value the member returns.
- An expression specifying the call to configure.
- A configuration object.
-
-
-
- Configures any call to the fake object.
-
- A configuration object.
-
-
-
- Gets the faked object.
-
-
-
-
- Gets all calls made to the faked object.
-
-
-
-
- Used to tag fields and properties that will be initialized through the
- Fake.Initialize-method.
-
-
-
-
- Provides the base implementation for the IFakeConfigurator-interface.
-
- The type of fakes the configurator can configure.
-
-
-
- Provides configurations for fake objects of a specific type.
-
-
-
-
- Applies the configuration for the specified fake object.
-
- The fake object to configure.
-
-
-
- Gets the type the instance provides configuration for.
-
-
-
-
- Configures the fake.
-
- The fake object.
-
-
-
- Applies the configuration for the specified fake object.
-
- The fake object to configure.
-
-
-
- Asserts the type of the that fake is of correct.
-
- The fake object.
-
-
-
- Gets the type the instance provides configuration for.
-
-
-
-
-
- Provides extension methods for fake objects.
-
-
-
-
- Specifies NumberOfTimes(1) to the IRepeatConfiguration{TFake}.
-
- The configuration to set repeat 1 to.
-
-
-
- Specifies NumberOfTimes(2) to the IRepeatConfiguration{TFake}.
-
- The configuration to set repeat 2 to.
-
-
-
- Specifies that a call to the configured call should be applied no matter what arguments
- are used in the call to the faked object.
-
- The type of the interface.
- The configuration.
- A configuration object.
-
-
-
- Filters to contain only the calls that matches the call specification.
-
- The type of fake the call is made on.
- The calls to filter.
- The call to match on.
- A collection of the calls that matches the call specification.
-
-
-
- Asserts that the specified call must have happened once or more.
-
- The configuration to assert on.
-
-
-
- Asserts that the specified has not happened.
-
- The configuration to assert on.
-
-
-
- Configures the call to return the next value from the specified sequence each time it's called. Null will
- be returned when all the values in the sequence has been returned.
-
-
- The type of return value.
-
-
- The call configuration to extend.
-
-
- The values to return in sequence.
-
-
-
-
- Specifies the value to return when the configured call is made.
-
- The type of the return value.
- The configuration to extend.
- The value to return.
- A configuration object.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The type of the return value.
- The configuration to extend.
- A function that produces the return value.
- A configuration object.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The type of the return value.
- Type of the first argument of the faked method call.
- The configuration to extend.
- A function that produces the return value.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Writes the calls in the collection to the specified text writer.
-
- The type of the calls.
- The calls to write.
- The writer to write the calls to.
-
-
-
- Writes all calls in the collection to the console.
-
- The type of the calls.
- The calls to write.
-
-
-
- Gets the argument at the specified index in the arguments collection
- for the call.
-
- The type of the argument to get.
- The call to get the argument from.
- The index of the argument.
- The value of the argument with the specified index.
-
-
-
- Gets the argument with the specified name in the arguments collection
- for the call.
-
- The type of the argument to get.
- The call to get the argument from.
- The name of the argument.
- The value of the argument with the specified name.
-
-
-
- Makes the fake strict, this means that any call to the fake
- that has not been explicitly configured will throw an exception.
-
- The type of fake object.
- The configuration.
- A configuration object.
-
-
-
- Applies a predicate to constrain which calls will be considered for interception.
-
-
- The return type of the where method.
-
-
- The configuration object to extend.
-
-
- A predicate for a fake object call.
-
- to the output.
-
- The configuration object.
-
-
-
-
- Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed.
-
- The type of fake object.
- The configuration that is extended.
- The to invoke.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- The exception to throw when a call that matches is invoked.
- Configuration object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Configuration object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- The type of exception to throw.
- Configuration object.
-
-
-
- Provides methods for guarding method arguments.
-
-
-
-
- Throws an exception if the specified argument is null.
-
- The argument.
- Name of the argument.
- The specified argument was null.
-
-
-
- When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked.
-
-
-
-
- Gets the value produced by the specified expression when compiled and invoked.
-
- The expression to get the value from.
- The value produced by the expression.
-
-
-
- Provides access to the file system.
-
-
-
-
- Opens the specified file in the specified mode.
-
- The full path and name of the file to open.
- The mode to open the file in.
- A stream for reading and writing the file.
-
-
-
- Gets a value indicating whether the specified file exists.
-
- The path and name of the file to check.
- True if the file exists.
-
-
-
- Creates a file with the specified name.
-
- The name of the file to create.
-
-
-
- A simple implementation of an IoC container.
-
-
-
-
- The dictionary that stores the registered services.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Resolves an instance of the specified component type.
-
- Type of the component.
- An instance of the component type.
-
-
-
- Registers the specified resolver.
-
- The type of component to register.
- The resolver.
-
-
-
- Registers the specified resolver as a singleton.
-
- The type of component to register.
- The resolver.
-
-
-
- Provides properties and methods to specify repeat.
-
-
-
-
- Specifies the number of times as repeat.
-
- The number of times expected.
- A Repeated instance.
-
-
-
- Specifies once as the repeat.
-
-
-
-
- Specifies twice as the repeat.
-
-
-
-
- Lets you specify options for the next call to a fake object.
-
-
-
-
- Specifies options for the next call to the specified fake object. The next call will
- be recorded as a call configuration.
-
- The type of the faked object.
- The faked object to configure.
- A call configuration object.
-
-
-
- Provides functionality for making ordered assertions on fakes.
-
-
-
-
- Creates a scope that changes the behavior on asserts so that all asserts within
- the scope must be to calls in the specified collection of calls. Calls must have happened
- in the order that the asserts are specified or the asserts will fail.
-
- The calls to assert among.
- A disposable used to close the scope.
-
-
-
- Provides static methods for the IOutputWriter-interface.
-
-
-
-
- Writes a new line to the writer.
-
- The writer to write to.
- The writer.
-
-
-
- Writes the format string to the writer.
-
- The writer to write to.
- The format string to write.
- Replacements for the format string.
- The writer.
-
-
-
- Writes the specified object to the writer (using the ToString-method of the object).
-
- The writer to write to.
- The value to write to the writer.
- The writer.
-
-
-
- Allows the developer to raise an event on a faked object.
-
-
-
-
- Raises an event on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
- The type of the event args.
- The sender of the event.
- The instance containing the event data.
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
- Raises an event on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
- The type of the event arguments.
- The instance containing the event data.
-
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
-
- Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
-
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
-
- A class exposing an event handler to attach to an event of a faked object
- in order to raise that event.
-
- The type of the event args.
-
-
-
- Register this event handler to an event on a faked object in order to raise that event.
-
- The sender of the event.
- Event args for the event.
-
-
-
- Gets a generic event handler to attach to the event to raise.
-
-
-
-
- Provides methods for creating recorders for self initializing fakes.
-
-
-
-
- Gets a recorder that records to and loads calls from the specified file.
-
- The file to use for recording.
- A recorder instance.
-
-
-
- Provides syntax for specifying the number of times a call must have been repeated when asserting on
- fake object calls.
-
- A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly);
-
-
-
- Specifies that a call must have been repeated a number of times
- that is validated by the specified repeatValidation argument.
-
- A predicate that specifies the number of times
- a call must have been made.
- A Repeated-instance.
-
-
-
- When implemented gets a value indicating if the repeat is matched
- by the Happened-instance.
-
- The repeat of a call.
- True if the repeat is a match.
-
-
-
- Asserts that a call has not happened at all.
-
-
-
-
- The call must have happened exactly the number of times that is specified in the next step.
-
-
-
-
- The call must have happened any number of times greater than or equal to the number of times that is specified
- in the next step.
-
-
-
-
- The call must have happened any number of times less than or equal to the number of times that is specified
- in the next step.
-
-
-
-
- Handles the registration of root dependencies in an IoC-container.
-
-
-
-
- Registers the dependencies.
-
- The container to register the dependencies in.
-
-
-
- DTO for recorded calls.
-
-
-
-
- Initializes a new instance of the class.
-
- The method.
- The output arguments.
- The return value.
-
-
-
- Gets the method that was called.
-
- The method.
-
-
-
- Gets the output arguments of the call.
-
- The output arguments.
-
-
-
- Gets the return value of the call.
-
- The return value.
-
-
-
- Represents storage for recorded calls for self initializing
- fakes.
-
-
-
-
- Loads the recorded calls for the specified recording.
-
- The recorded calls for the recording with the specified id.
-
-
-
- Saves the specified calls as the recording with the specified id,
- overwriting any previous recording.
-
- The calls to save.
-
-
-
- Initializes a new instance of the class.
-
- Name of the file.
- The file system.
-
-
-
- Loads the recorded calls for the specified recording.
-
-
- The recorded calls for the recording with the specified id.
-
-
-
-
- Saves the specified calls as the recording with the specified id,
- overwriting any previous recording.
-
- The calls to save.
-
-
-
- A factory responsible for creating instances of FileStorage.
-
- The file name of the storage.
- A FileStorage instance.
-
-
-
- An interface for recorders that provides stored responses for self initializing fakes.
-
-
-
-
- Applies the call if the call has been recorded.
-
- The call to apply to from recording.
-
-
-
- Records the specified call.
-
- The call to record.
-
-
-
- Gets a value indicating whether the recorder is currently recording.
-
-
-
-
- An exception that can be thrown when recording for self initialized
- fakes fails or when playback fails.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
-
- The parameter is null.
-
-
- The class name is null or is zero (0).
-
-
-
-
- Manages the applying of recorded calls and recording of new calls when
- using self initialized fakes.
-
-
-
-
- Initializes a new instance of the class.
-
- The storage.
-
-
-
- Applies the call if the call has been recorded.
-
- The call to apply to from recording.
-
-
-
- Records the specified call.
-
- The call to record.
-
-
-
- Saves all recorded calls to the storage.
-
-
-
-
- Gets a value indicating whether the recorder is currently recording.
-
-
-
-
-
- Represents a factory responsible for creating recording manager
- instances.
-
- The storage the manager should use.
- A RecordingManager instance.
-
-
-
- A call rule use for self initializing fakes, delegates call to
- be applied by the recorder.
-
-
-
-
- Initializes a new instance of the class.
-
- The wrapped rule.
- The recorder.
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
-
- An attribute that can be applied to code that should be fixed because there's a
- code smell.
-
-
-
-
- Gets or sets the description of the smell.
-
-
-
-
- Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method.
-
-
-
-
diff --git a/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.dll b/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.dll
deleted file mode 100644
index 4f27c109966..00000000000
Binary files a/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.dll and /dev/null differ
diff --git a/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.xml b/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.xml
deleted file mode 100644
index 08969ecf59e..00000000000
--- a/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.xml
+++ /dev/null
@@ -1,3525 +0,0 @@
-
-
-
- FakeItEasy
-
-
-
-
- Provides methods for generating fake objects.
-
-
-
-
- Creates a fake object of the type T.
-
- The type of fake object to create.
- A fake object.
-
-
-
- Creates a fake object of the type T.
-
- The type of fake object to create.
- A lambda where options for the built fake object can be specified.
- A fake object.
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
- A collection of fake objects of the specified type.
-
-
-
- Gets a dummy object of the specified type. The value of a dummy object
- should be irrelevant. Dummy objects should not be configured.
-
- The type of dummy to return.
- A dummy object of the specified type.
- Dummies of the specified type can not be created.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- Configures a call to a faked object.
-
- An expression where the configured member is called.
- A configuration object.
-
-
-
- Gets a configuration object allowing for further configuration of
- any call to the specified faked object.
-
-
- The fake to configure.
-
-
- A configuration object.
-
-
-
-
- Configures a call to a faked object.
-
- The type of member on the faked object to configure.
- An expression where the configured member is called.
- A configuration object.
-
-
-
- Provides configuration for any (not a specific) call on a faked object.
-
-
-
-
- Gets a configuration object allowing for further configuration of
- any call to the specified faked object.
-
- The faked object to configure.
- A configuration object.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- Provides string formatting for arguments of type T when written in call lists.
-
- The type of the arguments which will be formatted by this instance.
-
-
-
- Provides string formatting for arguments when written in
- call lists.
-
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets the type of arguments this formatter works on.
-
-
-
-
- Gets the priority of the formatter, when two formatters are
- registered for the same type the one with the highest
- priority is used.
-
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets the type of arguments this formatter works on.
-
-
-
-
- Gets the priority of the formatter, when two formatters are
- registered for the same type the one with the highest
- priority is used.
-
-
-
-
- Provides the base for rules that can be built using the FakeConfiguration.
-
-
-
-
- Represents a call rule that has a description of the calls the
- rule is applicable to.
-
-
-
-
- Allows for intercepting call to a fake object and
- act upon them.
-
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
- Writes a description of calls the rule is applicable to.
-
- The writer.
-
-
-
- Gets if this rule is applicable to the specified call.
-
- The call to validate.
- True if the rule applies to the call.
-
-
-
- Writes a description of calls the rule is applicable to.
-
- The writer to write the description to.
-
-
-
- Gets or sets an action that is called by the Apply method to apply this
- rule to a fake object call.
-
-
-
-
- Gets a collection of actions that should be invoked when the configured
- call is made.
-
-
-
-
- Gets or sets values to apply to output and reference variables.
-
-
-
-
- Gets or sets a value indicating whether the base method of the fake object call should be
- called when the fake object call is made.
-
-
-
-
- Gets or sets the number of times the configured rule should be used.
-
-
-
-
- Gets a description of calls the rule is applicable to.
-
-
-
-
-
- Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>.
-
- The type of fake object that is configured.
-
-
-
- Configures a call that returns a value and allows the use to
- specify validations for arguments.
-
- The type of the member.
-
-
-
- Configures a call that returns a value.
-
- The type of the member.
-
-
-
- Configuration that lets the developer specify that an exception should be
- thrown by a fake object call.
-
-
-
-
- Hides standard Object members to make fluent interfaces
- easier to read. Found in the source of Autofac:
- Based on blog post here:
-
-
-
-
-
- Hides the ToString-method.
-
- A string representation of the implementing object.
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Returns a hash code for this instance.
-
-
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
-
-
-
-
- Gets the type.
-
- The exact runtime type of the current instance.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- A function that creates the exception to throw.
- Configuration object.
-
-
-
- Configuration for callbacks of fake object calls.
-
- The type of interface to return.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The action to invoke.
- A configuration object.
-
-
-
- Allows the developer to assert on a call that's configured.
-
-
-
-
- Asserts that the configured call has happened the number of times
- constrained by the repeatConstraint parameter.
-
- A constraint for how many times the call
- must have happened.
- The call has not been called a number of times
- that passes the repeat constraint.
-
-
-
- Configuration that lets you specify that a fake object call should call it's base method.
-
-
-
-
- When the configured method or methods are called the call
- will be delegated to the base method of the faked method.
-
- A configuration object.
- The fake object is of an abstract type or an interface
- and no base method exists.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- A function that produces the return value.
- A configuration object.
-
-
-
- Provides configurations to validate arguments of a fake object call.
-
- The type of interface to return.
-
-
-
- Configures the call to be accepted when the specified predicate returns true.
-
- The argument predicate.
- A configuration object.
-
-
-
- Provides a way to configure predicates for when a call should be applied.
-
- The type of fake object that is going to be configured..
-
-
-
- Applies a predicate to constrain which calls will be considered for interception.
-
- A predicate for a fake object call.
- An action that writes a description of the predicate
- to the output.
- The configuration object.
-
-
-
- Provides an API entry point for constraining arguments of fake object calls.
-
- The type of argument to validate.
-
-
-
- Gets an argument constraint object that will be used to constrain a method call argument.
-
-
-
-
- Gets a constraint that considers any value of an argument as valid.
-
- This is a shortcut for the "Ignored"-property.
-
-
-
- Gets a constraint that considers any value of an argument as valid.
-
-
-
-
- A strongly-typed resource class, for looking up localized strings, etc.
-
-
-
-
- Returns the cached ResourceManager instance used by this class.
-
-
-
-
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
-
-
-
-
- Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set..
-
-
-
-
- Looks up a localized string similar to The specified argument name does not exist in the ArgumentList..
-
-
-
-
- Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type..
-
-
-
-
- Looks up a localized string similar to An argument validation was not configured correctly..
-
-
-
-
- Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times..
-
-
-
-
- Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times..
-
-
-
-
- Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake.
-
- The following constructors failed:
- {1}.
-
-
-
-
- Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked..
-
-
-
-
- Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter..
-
-
-
-
- Looks up a localized string similar to
-
- The current proxy generator failed to create a proxy with the specified arguments for the constructor:
-
- Reason for failure:
- - {0}
-
- .
-
-
-
-
- Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}".
-
- 1. The type is not registered in the current IFakeObjectContainer.
- 2. The current IProxyGenerator failed to generate a proxy for the following reason:
-
- {1}.
-
-
-
-
- Looks up a localized string similar to Unable to create fake object..
-
-
-
-
- Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead..
-
-
-
-
- Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body..
-
-
-
-
- Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator..
-
-
-
-
- Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid..
-
-
-
-
- Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}..
-
-
-
-
- Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call..
-
-
-
-
- Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid..
-
-
-
-
- Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted..
-
-
-
-
- Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised..
-
-
-
-
- Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call..
-
-
-
-
- Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one..
-
-
-
-
- Looks up a localized string similar to The specified call is not made on a fake object..
-
-
-
-
- Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}..
-
-
-
-
- Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this..
-
-
-
-
- Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:.
-
-
-
-
- Looks up a localized string similar to The number of argument names does not match the number of arguments..
-
-
-
-
- A class exposing an event handler to attach to an event of a faked object
- in order to raise that event.
-
- The type of the event args.
-
-
-
- Used by the event raising rule of fake objects to get the event arguments used in
- a call to Raise.With.
-
-
-
-
- Gets the sender of the event.
-
-
-
-
- Gets the event arguments of the event.
-
-
-
-
- Register this event handler to an event on a faked object in order to raise that event.
-
- The sender of the event.
- Event args for the event.
-
-
-
- Gets a generic event handler to attach to the event to raise.
-
-
-
-
- Represents a fake object that provides an API for configuring a faked object, exposed by the
- FakedObject-property.
-
- The type of the faked object.
-
-
-
- Provides methods for configuring a fake object.
-
- The type of fake object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The type of the return value of the member.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call is made to any method on the
- object.
-
- A configuration object.
-
-
-
- Initializes a new instance of the class.
- Creates a new fake object.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new fake object using the specified options.
-
-
- Options used to create the fake object.
-
-
-
-
- Configures calls to the specified member.
-
- An expression specifying the call to configure.
- A configuration object.
-
-
-
- Configures calls to the specified member.
-
- The type of value the member returns.
- An expression specifying the call to configure.
- A configuration object.
-
-
-
- Configures any call to the fake object.
-
- A configuration object.
-
-
-
- Gets the faked object.
-
-
-
-
- Gets all calls made to the faked object.
-
-
-
-
- Access all types in all assemblies in the same directory as the FakeItEasy assembly.
-
-
-
-
- Provides a set of types that are available.
-
-
-
-
- Gets a collection of available types.
-
- The available types.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Gets a collection of available types.
-
- The available types.
-
-
-
- Configuration for any call to a faked object.
-
-
-
-
- Provides configuration methods for methods that does not have a return value and
- allows the use to specify validations for arguments.
-
-
-
-
- Provides configuration methods for methods that does not have a return value.
-
-
-
-
- Lets the developer configure output values of out and ref parameters.
-
-
-
-
- Specifies output values for out and ref parameters. Specify the values in the order
- the ref and out parameters has in the configured call, any non out and ref parameters are ignored.
-
- The values.
- A configuration object.
-
-
-
- Configures the specified call to do nothing when called.
-
- A configuration object.
-
-
-
- Matches calls that has the return type specified in the generic type parameter.
-
- The return type of the members to configure.
- A configuration object.
-
-
-
- Manages registration of a set of components in a DictionaryContainer.
-
-
-
-
- Registers the components of this module.
-
- The container to register components in.
-
-
-
- A factory that creates instances of the RecordingCallRuleType.
-
-
-
-
- Creates the specified fake object.
-
- The type of the fake.
- The fake object the rule belongs to.
- The rule that's being recorded.
- A RecordingCallRule instance.
-
-
-
- A factory responsible for creating start configuration for fake objects.
-
-
-
-
- Creates a start configuration for the specified fake object that fakes the
- specified type.
-
- The type of the fake object.
- The fake object to configure.
- A configuration object.
-
-
-
- An exception that can be thrown when something goes wrong with the configuration
- of a fake object.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
-
- The parameter is null.
-
-
- The class name is null or is zero (0).
-
-
-
-
- Handles the configuration of fake object given an expression specifying
- a call on a faked object.
-
-
-
-
- Lets you set up expectations and configure repeat for the configured call.
-
-
-
-
- Provides configuration for method calls that has a return value.
-
-
-
-
- Specifies the number of times for the configured event.
-
- The number of times to repeat.
-
-
-
- A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration
- interfaces.
-
-
-
-
- Configurations for when a configured call is recorded.
-
-
-
-
- Provides configuration from VisualBasic.
-
-
-
-
- A call rule that has been recorded.
-
-
-
-
- A call rule that "sits and waits" for the next call, when
- that call occurs the recorded rule is added for that call.
-
- The type of the fake.
-
-
-
- Provides access to a set of calls and a call matcher for these calls.
-
-
-
-
- Provides access to a call matcher.
-
-
-
-
- Gets a call predicate that can be used to check if a fake object call matches
- the specified constraint.
-
-
-
-
- Gets the set of calls.
-
-
-
-
- Represents a delegate that creates a configuration object from
- a fake object and the rule to build.
-
- The rule that's being built.
- The fake object the rule is for.
- A configuration object.
-
-
-
- Represents a predicate that matches a fake object call.
-
-
-
-
- Gets a value indicating whether the call matches the predicate.
-
- The call to match.
- True if the call matches the predicate.
-
-
-
- Represents an argument and a dummy value to use for that argument.
-
-
-
-
- Initializes a new instance of the class.
-
- A value indicating if the dummy value was successfully resolved.
- The type of argument.
- The resolved value.
-
-
-
- Gets a value indicating whether a dummy argument value was successfully
- resolved.
-
-
-
-
- Gets the type of the argument.
-
-
-
-
- Gets the resolved value.
-
-
-
-
- Holds a formatter as well as the distance between a type to be formatted
- and the type for which the formatted is registered.
-
-
-
-
- Represents an event that happens when a call has been intercepted by a proxy.
-
-
-
-
- Initializes a new instance of the class.
-
- The call.
-
-
-
- Gets the call that was intercepted.
-
- The call.
-
-
-
- Keeps track of metadata for interceptions.
-
-
-
-
- Gets whether the rule has been called the number of times specified or not.
-
- True if the rule has not been called the number of times specified.
-
-
-
- Gets or sets the number of times the rule has been used.
-
-
-
-
- Gets or sets the rule this metadata object is tracking.
-
-
-
-
- Manages attaching of argument constraints.
-
- The type of argument to constrain.
-
-
-
- Constrains the argument with a predicate.
-
- The predicate that should constrain the argument.
- An action that will be write a description of the constraint.
- A dummy argument value.
-
-
-
- Inverts the logic of the matches method.
-
-
-
-
- Validates an argument, checks that it's valid in a specific fake call.
-
-
-
-
- Writes a description of the argument constraint to the specified writer.
-
-
- The writer.
-
-
-
-
- Gets whether the argument is valid.
-
- The argument to validate.
- True if the argument is valid.
-
-
-
- Default implementation of .
-
-
-
-
- Attaches a fake manager to the proxy so that intercepted
- calls can be configured.
-
-
-
-
- Attaches a to the specified proxy, listening to
- the event raiser.
-
- The type of the fake object proxy.
- The proxy to attach to.
- The event raiser to listen to.
-
-
-
- Gets the fake manager associated with the proxy.
-
- The proxy to get the manager from.
- A fake manager.
-
-
-
- Attaches a to the specified proxy, listening to
- the event raiser.
-
- The type of the fake object proxy.
- The proxy to attach to.
- The event raiser to listen to.
-
-
-
- Gets the fake manager associated with the proxy.
-
- The proxy to get the manager from.
- A fake manager.
-
-
-
- Represents an object that can be tagged with another object. When implemented
- by a proxy returned from an FakeItEasy uses the tag
- to store a reference to the that handles that proxy.
-
-
-
-
- Gets or sets the tag.
-
-
-
-
- The default implementation of the IFakeObjectCallFormatter interface.
-
-
-
-
- Provides string formatting for fake object calls.
-
-
-
-
- Gets a human readable description of the specified
- fake object call.
-
- The call to get a description for.
- A description of the call.
-
-
-
- Gets a human readable description of the specified
- fake object call.
-
- The call to get a description for.
- A description of the call.
-
-
-
- Handles configuring of fake objects to delegate all their calls to a wrapped instance.
-
-
-
-
- Manages configuration of fake objects to wrap instances.
-
-
-
-
- Configures the specified faked object to wrap the specified instance.
-
- The faked object to configure.
- The instance to wrap.
- The recorder to use, null if no recording should be made.
-
-
-
- Configures the specified faked object to wrap the specified instance.
-
- The faked object to configure.
- The instance to wrap.
- The recorder to use, null if no recording should be made.
-
-
-
- A fake object container where delegates can be registered that are used to
- resolve fake objects.
-
-
-
-
- A container that can create fake objects.
-
-
-
-
- Handles global configuration of fake object.
-
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- Creates a dummy object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of dummy object to create.
- The dummy object that was created if the method returns true.
- True if a dummy object can be created.
-
-
-
- Initializes a new instance of the class.
- Creates a new instance of the DelegateFakeObjectContainer.
-
-
-
-
- Creates a fake object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of dummy object to create.
- The fake object that was created if the method returns true.
- True if a fake object can be created.
-
-
-
- Configures the fake.
-
- The type of fake.
- The fake object.
-
-
-
- Registers the specified fake delegate.
-
- The type of the return value of the method that encapsulates.
- The fake delegate.
-
-
-
- A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and
- IFakeConfigurations.
-
-
-
-
- Initializes a new instance of the class.
-
- The dummy definitions.
- The fake configurators.
-
-
-
- Creates a fake object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of fake object to create.
- The fake object that was created if the method returns true.
- True if a fake object can be created.
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- An exception that is thrown when there was an error creating a fake object.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
-
- The parameter is null.
-
-
- The class name is null or is zero (0).
-
-
-
- Auto fake property rule.
-
- The central point in the API for proxied fake objects handles interception
- of fake object calls by using a set of rules. User defined rules can be inserted
- by using the AddRule-method.
-
- Event rule.
- Object member rule.
- Property behavior rule.
- Property setter rule.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Adds a call rule to the fake object.
-
- The rule to add.
-
-
-
- Adds a call rule last in the list of user rules, meaning it has the lowest priority possible.
-
- The rule to add.
-
-
-
- Removes the specified rule for the fake object.
-
- The rule to remove.
-
-
-
- Adds an interception listener to the manager.
-
- The listener to add.
-
-
-
- Removes any specified user rules.
-
-
-
-
- Gets the faked object.
-
-
-
-
- Gets the faked type.
-
-
-
-
- Gets the interceptions that are currently registered with the fake object.
-
-
-
-
- Gets a collection of all the calls made to the fake object within the current scope.
-
-
-
-
- A delegate responsible for creating FakeObject instances.
-
- An instance of .
-
-
-
- Represents a call to a fake object at interception time.
-
-
-
-
- Represents a fake object call that can be edited.
-
-
-
-
- Represents a call to a fake object.
-
-
-
-
- Gets the method that's called.
-
-
-
-
- Gets the arguments used in the call.
-
-
-
-
- Gets the faked object the call is performed on.
-
-
-
-
- Sets the return value of the call.
-
- The return value to set.
-
-
-
- Calls the base method of the faked type.
-
-
-
-
- Sets the value of the argument at the specified index in the parameters list.
-
- The index of the argument to set the value of.
- The value to set to the argument.
-
-
-
- Freezes the call so that it can no longer be modified.
-
- A completed fake object call.
-
-
-
- Sets that the call should not be recorded by the fake manager.
-
-
-
-
- Represents a scope for fake objects, calls configured within a scope
- are only valid within that scope. Only calls made within a scope
- are accessible from within a scope so for example asserts will only
- assert on those calls done within the scope.
-
-
-
-
- Provides access to all calls made to fake objects within a scope.
- Scopes calls so that only calls made within the scope are visible.
-
-
-
-
- Creates a new scope and sets it as the current scope.
-
- The created scope.
-
-
-
- Creates a new scope and sets it as the current scope, using the specified
- container as the container for the new scope.
-
- The container to use for the new scope.
- The created scope.
-
-
-
- Closes the scope.
-
-
-
-
- Adds an intercepted call to the current scope.
-
- The fake object.
- The call that is intercepted.
-
-
-
- Adds a fake object call to the current scope.
-
- The fake object.
- The rule to add.
-
-
-
- Represents a listener for fake object calls, can be plugged into a
- FakeManager instance to listen to all intercepted calls.
-
- The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any
- previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted
- method of any previously added listener.
-
-
-
- Called when the interception begins but before any call rules
- has been applied.
-
- The intercepted call.
-
-
-
- Called when the interception has been completed and rules has been
- applied.
-
- The intercepted call.
- The rule that was applied to the call.
-
-
-
- An interface to be implemented by classes that can generate proxies for FakeItEasy.
-
-
-
-
- Generates a proxy of the specified type and returns a result object containing information
- about the success of the generation and the proxy if it was generated.
-
- The type of proxy to generate.
- Interfaces to be implemented by the proxy.
- Arguments to pass to the constructor of the type in .
- The custom attribute builders.
- A result containing the generated proxy.
-
-
-
- Generates a proxy of the specified type and returns a result object containing information
- about the success of the generation and the proxy if it was generated.
-
- The type of proxy to generate.
- Interfaces to be implemented by the proxy.
- Arguments to pass to the constructor of the type in .
- A result containing the generated proxy.
-
-
-
- Gets a value indicating whether the specified member can be intercepted by the proxy generator.
-
- The member to test.
- The instance the method will be called on.
- The reason the method can not be intercepted.
- True if the member can be intercepted.
-
-
-
- An object that raises an event every time a call to a proxy has been intercepted.
-
-
-
-
- Raised when a call is intercepted.
-
-
-
-
- Represents a completed call to a fake object.
-
-
-
-
- Gets the value set to be returned from the call.
-
-
-
-
- Represents a text writer that writes to the output.
-
-
-
-
- Writes the specified value to the output.
-
- The value to write.
- The writer for method chaining.
-
-
-
- Formats the specified argument value as a string and writes
- it to the output.
-
- The value to write.
- The writer for method chaining.
-
-
-
- Indents the writer.
-
- A disposable that will unindent the writer when disposed.
-
-
-
- Provides instances from type catalogues.
-
-
-
-
- Gets an instance per type in the catalogue that is a descendant
- of the specified type.
-
- The type of instances to get.
- A sequence of instances of the specified type.
-
-
-
- Handles comparisons of instances of .
-
-
-
-
- Gets a value indicating whether the two instances of would invoke the same method
- if invoked on an instance of the target type.
-
- The type of target for invocation.
- The first .
- The second .
- True if the same method would be invoked.
-
-
-
- A null implementation for the IFakeObjectContainer interface.
-
-
-
-
- Always returns false and sets the fakeObject to null.
-
- The type of dummy object to create.
- Output variable for the fake object that will always be set to null.
- Always return false.
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- A call rule that applies to any call and just delegates the
- call to the wrapped object.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance.
-
-
- The object to wrap.
-
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
-
- An adapter that adapts an to a .
-
-
-
-
- Initializes a new instance of the class.
-
- The invocation.
-
-
-
- Freezes the call so that it can no longer be modified.
-
- A completed fake object call.
-
-
-
- Calls the base method, should not be used with interface types.
-
-
-
-
- Sets the specified value to the argument at the specified index.
-
- The index of the argument to set the value to.
- The value to set to the argument.
-
-
-
- Sets the return value of the call.
-
- The return value.
-
-
-
- Returns a description of the call.
-
-
- A that represents this instance.
-
-
-
-
- Gets a human readable description of the call.
-
-
-
-
-
- Gets the value set to be returned from the call.
-
-
-
-
- Gets the method that's called.
-
-
-
-
- Gets the arguments used in the call.
-
-
-
-
- Gets the faked object the call is performed on.
-
-
-
-
- A strongly-typed resource class, for looking up localized strings, etc.
-
-
-
-
- Returns the cached ResourceManager instance used by this class.
-
-
-
-
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
-
-
-
-
- Looks up a localized string similar to No constructor matches the passed arguments for constructor..
-
-
-
-
- Looks up a localized string similar to Arguments for constructor specified for interface type..
-
-
-
-
- Looks up a localized string similar to The type of proxy "{0}" is sealed..
-
-
-
-
- Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}..
-
-
-
-
- Looks up a localized string similar to No usable default constructor was found on the type {0}..
-
-
-
-
- The default implementation of the IFakeAndDummyManager interface.
-
-
-
-
- Handles the creation of fake and dummy objects.
-
-
-
-
- Creates a dummy of the specified type.
-
- The type of dummy to create.
- The created dummy.
- The current IProxyGenerator is not able to generate a fake of the specified type and
- the current IFakeObjectContainer does not contain the specified type.
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake object to generate.
- Options for building the fake object.
- A fake object.
- The current IProxyGenerator is not able to generate a fake of the specified type.
-
-
-
- Tries to create a dummy of the specified type.
-
- The type of dummy to create.
- Outputs the result dummy when creation is successful.
- A value indicating whether the creation was successful.
-
-
-
- Tries to create a fake object of the specified type.
-
- The type of fake to create.
- Options for the creation of the fake.
- The created fake object when creation is successful.
- A value indicating whether the creation was successful.
-
-
-
- Default implementation of the IFakeCreator-interface.
-
-
-
-
- A facade used by the public API for testability.
-
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake to create.
- Options for the created fake object.
- The created fake object.
- Was unable to generate the fake in the current configuration.
-
-
-
- Creates a dummy object, this can be a fake object or an object resolved
- from the current IFakeObjectContainer.
-
- The type of dummy to create.
- The created dummy.
- Was unable to generate the fake in the current configuration and
- no dummy was registered in the container for the specified type..
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
- A collection of fake objects of the specified type.
-
-
-
- Initializes a new instance of the class.
-
- The fake and dummy manager.
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake to create.
- Options for the created fake object.
- The created fake object.
- Was unable to generate the fake in the current configuration.
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
-
- A collection of fake objects of the specified type.
-
-
-
-
- Creates a dummy object, this can be a fake object or an object resolved
- from the current IFakeObjectContainer.
-
- The type of dummy to create.
- The created dummy.
- Was unable to generate the fake in the current configuration and
- no dummy was registered in the container for the specified type..
-
-
-
- Provides options for fake wrappers.
-
- The type of the fake object generated.
-
-
-
- Provides options for generating fake object.
-
- The type of fake object generated.
-
-
-
- Specifies arguments for the constructor of the faked class.
-
- The arguments to pass to the constructor of the faked class.
- Options object.
-
-
-
- Specifies arguments for the constructor of the faked class by giving an expression with the call to
- the desired constructor using the arguments to be passed to the constructor.
-
- The constructor call to use when creating a class proxy.
- Options object.
-
-
-
- Specifies that the fake should delegate calls to the specified instance.
-
- The object to delegate calls to.
- Options object.
-
-
-
- Specifies that the fake should be created with these additional attributes.
-
- The attributes to build into the proxy.
- Options object.
-
-
-
- Sets up the fake to implement the specified interface in addition to the
- originally faked class.
-
- The type of interface to implement.
- Options object.
- The specified type is not an interface.
- The specified type is null.
-
-
-
- Specifies an action that should be run over the fake object
- once it's created.
-
- An action to perform.
- Options object.
-
-
-
- Specifies a fake recorder to use.
-
- The recorder to use.
- Options object.
-
-
-
- Initializes a new instance of the class.
-
- The container.
- The fake object creator.
-
-
-
- Contains the result of a call to TryCreateProxy of IProxyGenerator.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a failed proxy
- generation attempt.
-
-
- The reason the proxy generation failed.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a failed proxy
- generation attempt due to an exception being caught.
-
-
- The reason the proxy generation failed.
-
-
- The exception thrown from the creation attempt.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a successful proxy
- generation.
-
-
- The proxy that was generated.
-
-
- An event raiser that raises
- events when calls are intercepted to the proxy.
-
-
-
-
- Gets a value indicating whether the proxy was successfully created.
-
-
-
-
- Gets the generated proxy when it was successfully created.
-
-
-
-
- Gets the event raiser that raises events when calls to the proxy are
- intercepted.
-
-
-
-
- Gets the reason for failure when the generation was not successful.
-
-
-
-
- Represents a class that can parse a lambda expression
- that represents a method or property call.
-
-
-
-
- Parses the specified expression.
-
- The expression to parse.
- The parsed expression.
-
-
-
- Handles the matching of fake object calls to expressions.
-
-
-
-
- Initializes a new instance of the class.
-
- The call specification.
- The constraint factory.
- The method info manager to use.
- A parser to use to parse call expressions.
-
-
-
- Matches the specified call against the expression.
-
- The call to match.
- True if the call is matched by the expression.
-
-
-
- Gets a description of the call.
-
- Description of the call.
-
-
-
- Gets a human readable description of calls that will be matched by this
- matcher.
-
-
-
-
- An implementation of the interface that uses
- expressions for evaluating if the rule is applicable to a specific call.
-
-
-
-
- Initializes a new instance of the class.
-
- The expression matcher to use.
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Handles the instantiation of ExpressionCallRule instance.
-
- An expression specifying the call.
- A rule instance.
-
-
-
- Manages breaking call specification expression into their various parts.
-
-
-
-
- Manages breaking call specification expression into their various parts.
-
-
-
-
- Gets the fake object an expression is called on.
-
- The call expression.
- The FakeManager instance that manages the faked object the call is made on.
- The fakeObjectCall is null.
- The specified expression is not an expression where a call is made to a faked object.
-
-
-
- Gets the fake object an expression is called on.
-
- The call expression.
- A FakeObject.
- The fakeObjectCall is null.
- The specified expression is not an expression where a call is made to a faked object.
-
-
-
- Provides extension methods for configuring and asserting on faked objects
- without going through the static methods of the Fake-class.
-
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The type of fake object to configure.
- The type of the return value of the member.
- The faked object to configure.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The faked object to configure.
- The type of fake object to configure.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call is made to any method on the
- object.
-
- The type of the fake.
- The faked object.
- A configuration object.
-
-
-
- Provides an extension method for configuring fake objects.
-
-
-
-
- Gets an object that provides a fluent interface syntax for configuring
- the fake object.
-
- The type of the fake object.
- The fake object to configure.
- A configuration object.
- The fakedObject was null.
- The object passed in is not a faked object.
-
-
-
- Used to tag fields and properties that will be initialized through the
- Fake.Initialize-method.
-
-
-
-
- A simple implementation of an IoC container.
-
-
-
-
- The dictionary that stores the registered services.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Resolves an instance of the specified component type.
-
- Type of the component.
- An instance of the component type.
-
-
-
- Registers the specified resolver.
-
- The type of component to register.
- The resolver.
-
-
-
- Registers the specified resolver as a singleton.
-
- The type of component to register.
- The resolver.
-
-
-
- Provides properties and methods to specify repeat.
-
-
-
-
- Specifies the number of times as repeat.
-
- The number of times expected.
- A Repeated instance.
-
-
-
- Specifies once as the repeat.
-
-
-
-
- Specifies twice as the repeat.
-
-
-
-
- Provides functionality for making ordered assertions on fakes.
-
-
-
-
- Creates a scope that changes the behavior on asserts so that all asserts within
- the scope must be to calls in the specified collection of calls. Calls must have happened
- in the order that the asserts are specified or the asserts will fail.
-
- The calls to assert among.
- A disposable used to close the scope.
-
-
-
- Provides the base implementation for the IFakeConfigurator-interface.
-
- The type of fakes the configurator can configure.
-
-
-
- Provides configurations for fake objects of a specific type.
-
-
-
-
- Applies the configuration for the specified fake object.
-
- The fake object to configure.
-
-
-
- Gets the type the instance provides configuration for.
-
-
-
-
- Configures the fake.
-
- The fake object.
-
-
-
- Applies the configuration for the specified fake object.
-
- The fake object to configure.
-
-
-
- Asserts the type of the that fake is of correct.
-
- The fake object.
-
-
-
- Gets the type the instance provides configuration for.
-
-
-
-
-
- Represents a definition of how a fake object of the type T should
- be created.
-
- The type of fake.
-
-
-
- Represents a definition of how dummies of the specified type should be created.
-
-
-
-
- Creates the fake.
-
- The fake object.
-
-
-
- Gets the type of fake object the definition is for.
-
-
-
-
- Creates the dummy.
-
- The dummy object.
-
-
-
- Creates the dummy.
-
- The dummy object.
-
-
-
- Gets the type the definition is for.
-
- For type.
-
-
-
- Provides validation extensions for .
-
-
-
-
- Constrains an argument so that it must be null (Nothing in VB).
-
- The type of the argument.
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Constrains the string argument to contain the specified text.
-
- The constraint manager to match the constraint.
- The string the argument string should contain.
- A dummy argument value.
-
-
-
- Constrains the sequence so that it must contain the specified value.
-
- The constraint manager to match the constraint.
- The value the collection should contain.
- The type of sequence.
- A dummy argument value.
-
-
-
- Constrains the string so that it must start with the specified value.
-
- The constraint manager to match the constraint.
- The value the string should start with.
- A dummy argument value.
-
-
-
- Constrains the string so that it must end with the specified value.
-
- The constraint manager to match the constraint.
- The value the string should end with.
- A dummy argument value.
-
-
-
- Constrains the string so that it must be null or empty.
-
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Constrains argument value so that it must be greater than the specified value.
-
- The constraint manager to match the constraint.
- The value the string should start with.
- The type of argument to constrain.
- A dummy argument value.
-
-
-
- The tested argument collection should contain the same elements as the
- as the specified collection.
-
- The constraint manager to match the constraint.
- The sequence to test against.
- The type of argument to constrain.
- A dummy argument value.
-
-
-
- Tests that the IEnumerable contains no items.
-
- The type of argument.
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Tests that the passed in argument is equal to the specified value.
-
- The type of the argument.
- The constraint manager to match the constraint.
- The value to compare to.
- A dummy argument value.
-
-
-
- Tests that the passed in argument is the same instance (reference) as the specified value.
-
- The type of the argument.
- The constraint manager to match the constraint.
- The reference to compare to.
- A dummy argument value.
-
-
-
- Constrains the argument to be of the specified type.
-
- The type of argument in the method signature.
- The constraint manager.
- The type to constrain the argument with.
- A dummy value.
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- A human readable description of the constraint.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- A human readable description of the constraint format string.
-
-
- Arguments for the format string.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument to be not null (Nothing in VB) and to match
- the specified predicate.
-
- The type of the argument to constrain.
- The constraint manager.
- The predicate that constrains non null values.
- An action that writes a description of the constraint
- to the output.
- A dummy argument value.
-
-
-
- Provides static methods for the IOutputWriter-interface.
-
-
-
-
- Writes a new line to the writer.
-
- The writer to write to.
- The writer.
-
-
-
- Writes the format string to the writer.
-
- The writer to write to.
- The format string to write.
- Replacements for the format string.
- The writer.
-
-
-
- Writes the specified object to the writer (using the ToString-method of the object).
-
- The writer to write to.
- The value to write to the writer.
- The writer.
-
-
-
- Provides syntax for specifying the number of times a call must have been repeated when asserting on
- fake object calls.
-
- A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly);
-
-
-
- Specifies that a call must have been repeated a number of times
- that is validated by the specified repeatValidation argument.
-
- A predicate that specifies the number of times
- a call must have been made.
- A Repeated-instance.
-
-
-
- When implemented gets a value indicating if the repeat is matched
- by the Happened-instance.
-
- The repeat of a call.
- True if the repeat is a match.
-
-
-
- Asserts that a call has not happened at all.
-
-
-
-
- The call must have happened exactly the number of times that is specified in the next step.
-
-
-
-
- The call must have happened any number of times greater than or equal to the number of times that is specified
- in the next step.
-
-
-
-
- The call must have happened any number of times less than or equal to the number of times that is specified
- in the next step.
-
-
-
-
- Provides methods for creating recorders for self initializing fakes.
-
-
-
-
- Gets a recorder that records to and loads calls from the specified file.
-
- The file to use for recording.
- A recorder instance.
-
-
-
- Provides access to the file system.
-
-
-
-
- Opens the specified file in the specified mode.
-
- The full path and name of the file to open.
- The mode to open the file in.
- A stream for reading and writing the file.
-
-
-
- Gets a value indicating whether the specified file exists.
-
- The path and name of the file to check.
- True if the file exists.
-
-
-
- Creates a file with the specified name.
-
- The name of the file to create.
-
-
-
- Gets the value produced by the specified expression when compiled and invoked.
-
- The expression to get the value from.
- The value produced by the expression.
-
-
-
- An exception thrown when an expectation is not met (when asserting on fake object calls).
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
-
- The parameter is null.
-
-
- The class name is null or is zero (0).
-
-
-
-
- Provides extension methods for fake objects.
-
-
-
-
- Specifies NumberOfTimes(1) to the IRepeatConfiguration{TFake}.
-
- The configuration to set repeat 1 to.
-
-
-
- Specifies NumberOfTimes(2) to the IRepeatConfiguration{TFake}.
-
- The configuration to set repeat 2 to.
-
-
-
- Specifies that a call to the configured call should be applied no matter what arguments
- are used in the call to the faked object.
-
- The type of the interface.
- The configuration.
- A configuration object.
-
-
-
- Filters to contain only the calls that matches the call specification.
-
- The type of fake the call is made on.
- The calls to filter.
- The call to match on.
- A collection of the calls that matches the call specification.
-
-
-
- Asserts that the specified call must have happened once or more.
-
- The configuration to assert on.
-
-
-
- Asserts that the specified has not happened.
-
- The configuration to assert on.
-
-
-
- Configures the call to return the next value from the specified sequence each time it's called. Null will
- be returned when all the values in the sequence has been returned.
-
-
- The type of return value.
-
-
- The call configuration to extend.
-
-
- The values to return in sequence.
-
-
-
-
- Specifies the value to return when the configured call is made.
-
- The type of the return value.
- The configuration to extend.
- The value to return.
- A configuration object.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The type of the return value.
- The configuration to extend.
- A function that produces the return value.
- A configuration object.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The type of the return value.
- Type of the first argument of the faked method call.
- The configuration to extend.
- A function that produces the return value.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Writes the calls in the collection to the specified text writer.
-
- The type of the calls.
- The calls to write.
- The writer to write the calls to.
-
-
-
- Writes all calls in the collection to the console.
-
- The type of the calls.
- The calls to write.
-
-
-
- Gets the argument at the specified index in the arguments collection
- for the call.
-
- The type of the argument to get.
- The call to get the argument from.
- The index of the argument.
- The value of the argument with the specified index.
-
-
-
- Gets the argument with the specified name in the arguments collection
- for the call.
-
- The type of the argument to get.
- The call to get the argument from.
- The name of the argument.
- The value of the argument with the specified name.
-
-
-
- Makes the fake strict, this means that any call to the fake
- that has not been explicitly configured will throw an exception.
-
- The type of fake object.
- The configuration.
- A configuration object.
-
-
-
- Applies a predicate to constrain which calls will be considered for interception.
-
-
- The return type of the where method.
-
-
- The configuration object to extend.
-
-
- A predicate for a fake object call.
-
- to the output.
-
- The configuration object.
-
-
-
-
- Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed.
-
- The type of fake object.
- The configuration that is extended.
- The to invoke.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- The exception to throw when a call that matches is invoked.
- Configuration object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Configuration object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- The type of exception to throw.
- Configuration object.
-
-
-
- A collection of method arguments.
-
-
-
-
- The arguments this collection contains.
-
-
-
-
- Initializes a new instance of the class.
-
- The arguments.
- The argument names.
-
-
-
- Initializes a new instance of the class.
-
- The arguments.
- The method.
-
-
-
- Returns an enumerator that iterates through the collection or arguments.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Gets the argument at the specified index.
-
- The type of the argument to get.
- The index of the argument.
- The argument at the specified index.
-
-
-
- Gets the argument with the specified name.
-
- The type of the argument to get.
- The name of the argument.
- The argument with the specified name.
-
-
-
- Gets an empty ArgumentList.
-
-
-
-
- Gets the number of arguments in the list.
-
-
-
-
- Gets the names of the arguments in the list.
-
-
-
-
- Gets the argument at the specified index.
-
- The index of the argument to get.
- The argument at the specified index.
-
-
-
- Provides methods for guarding method arguments.
-
-
-
-
- Throws an exception if the specified argument is null.
-
- The argument.
- Name of the argument.
- The specified argument was null.
-
-
-
- When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked.
-
-
-
-
- Provides static methods for accessing fake objects.
-
-
-
-
- Gets the fake object that manages the faked object.
-
- The faked object to get the manager object for.
- The fake object manager.
-
-
-
- Creates a new scope and sets it as the current scope. When inside a scope the
- getting the calls made to a fake will return only the calls within that scope and when
- asserting that calls were made, the calls must have been made within that scope.
-
- The created scope.
-
-
-
- Creates a new scope and sets it as the current scope. When inside a scope the
- getting the calls made to a fake will return only the calls within that scope and when
- asserting that calls were made, the calls must have been made within that scope.
-
- The container to use within the specified scope.
- The created scope.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- Gets all the calls made to the specified fake object.
-
- The faked object.
- A collection containing the calls to the object.
- The object passed in is not a faked object.
-
-
-
- Clears the configuration of the faked object.
-
- The faked object to clear the configuration of.
-
-
-
- Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified
- fixture.
-
- The object to initialize.
-
-
-
- Allows the developer to raise an event on a faked object.
-
-
-
-
- Raises an event on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
- The type of the event args.
- The sender of the event.
- The instance containing the event data.
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
- Raises an event on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
- The type of the event arguments.
- The instance containing the event data.
-
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
-
- Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
-
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
-
- Handles the registration of root dependencies in an IoC-container.
-
-
-
-
- Registers the dependencies.
-
- The container to register the dependencies in.
-
-
-
- DTO for recorded calls.
-
-
-
-
- Initializes a new instance of the class.
-
- The method.
- The output arguments.
- The return value.
-
-
-
- Gets the method that was called.
-
- The method.
-
-
-
- Gets the output arguments of the call.
-
- The output arguments.
-
-
-
- Gets the return value of the call.
-
- The return value.
-
-
-
- Represents storage for recorded calls for self initializing
- fakes.
-
-
-
-
- Loads the recorded calls for the specified recording.
-
- The recorded calls for the recording with the specified id.
-
-
-
- Saves the specified calls as the recording with the specified id,
- overwriting any previous recording.
-
- The calls to save.
-
-
-
- Initializes a new instance of the class.
-
- Name of the file.
- The file system.
-
-
-
- Loads the recorded calls for the specified recording.
-
-
- The recorded calls for the recording with the specified id.
-
-
-
-
- Saves the specified calls as the recording with the specified id,
- overwriting any previous recording.
-
- The calls to save.
-
-
-
- A factory responsible for creating instances of FileStorage.
-
- The file name of the storage.
- A FileStorage instance.
-
-
-
- An interface for recorders that provides stored responses for self initializing fakes.
-
-
-
-
- Applies the call if the call has been recorded.
-
- The call to apply to from recording.
-
-
-
- Records the specified call.
-
- The call to record.
-
-
-
- Gets a value indicating whether the recorder is currently recording.
-
-
-
-
- An exception that can be thrown when recording for self initialized
- fakes fails or when playback fails.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
-
- The parameter is null.
-
-
- The class name is null or is zero (0).
-
-
-
-
- Manages the applying of recorded calls and recording of new calls when
- using self initialized fakes.
-
-
-
-
- Initializes a new instance of the class.
-
- The storage.
-
-
-
- Applies the call if the call has been recorded.
-
- The call to apply to from recording.
-
-
-
- Records the specified call.
-
- The call to record.
-
-
-
- Saves all recorded calls to the storage.
-
-
-
-
- Gets a value indicating whether the recorder is currently recording.
-
-
-
-
-
- Represents a factory responsible for creating recording manager
- instances.
-
- The storage the manager should use.
- A RecordingManager instance.
-
-
-
- A call rule use for self initializing fakes, delegates call to
- be applied by the recorder.
-
-
-
-
- Initializes a new instance of the class.
-
- The wrapped rule.
- The recorder.
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
-
- Provides extension methods for the common uses.
-
-
-
-
- Replaces the format item in a specified System.String with the text equivalent
- of the value of a corresponding System.Object instance in a specified array using
- invariant culture as .
-
- A composite format string.
- An array containing zero or more objects to format.
- The formatted string.
-
-
-
- Gets an enumerable of tuples where the first value of each tuple is a value
- from the first collection and the second value of each tuple is the value at the same position
- from the second collection.
-
- The type of values in the first collection.
- The type of values in the second collection.
- The first of the collections to combine.
- The second of the collections to combine.
- An enumerable of tuples.
-
-
-
- Joins the collection to a string.
-
- The type of items in the collection.
- The items to join.
- A function that converts from an item to a string value.
- Separator to insert between each item.
- A string representation of the collection.
-
-
-
- Gets a dictionary containing the first element from the sequence that has a key specified by the key selector.
-
- The type of items in the sequence.
- The type of the key.
- The sequence.
- The key selector.
- A dictionary.
-
-
-
- An attribute that can be applied to code that should be fixed because there's a
- code smell.
-
-
-
-
- Gets or sets the description of the smell.
-
-
-
-
- Lets you specify options for the next call to a fake object.
-
-
-
-
- Specifies options for the next call to the specified fake object. The next call will
- be recorded as a call configuration.
-
- The type of the faked object.
- The faked object to configure.
- A call configuration object.
-
-
-
- Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method.
-
-
-
-
diff --git a/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.dll b/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.dll
deleted file mode 100644
index b8029c091e7..00000000000
Binary files a/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.dll and /dev/null differ
diff --git a/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.xml b/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.xml
deleted file mode 100644
index f865bf86973..00000000000
--- a/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.xml
+++ /dev/null
@@ -1,3424 +0,0 @@
-
-
-
- FakeItEasy
-
-
-
-
- Provides methods for generating fake objects.
-
-
-
-
- Creates a fake object of the type T.
-
- The type of fake object to create.
- A fake object.
-
-
-
- Creates a fake object of the type T.
-
- The type of fake object to create.
- A lambda where options for the built fake object can be specified.
- A fake object.
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
- A collection of fake objects of the specified type.
-
-
-
- Gets a dummy object of the specified type. The value of a dummy object
- should be irrelevant. Dummy objects should not be configured.
-
- The type of dummy to return.
- A dummy object of the specified type.
- Dummies of the specified type can not be created.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- Configures a call to a faked object.
-
- An expression where the configured member is called.
- A configuration object.
-
-
-
- Gets a configuration object allowing for further configuration of
- any call to the specified faked object.
-
-
- The fake to configure.
-
-
- A configuration object.
-
-
-
-
- Configures a call to a faked object.
-
- The type of member on the faked object to configure.
- An expression where the configured member is called.
- A configuration object.
-
-
-
- Provides an API entry point for constraining arguments of fake object calls.
-
- The type of argument to validate.
-
-
-
- Gets an argument constraint object that will be used to constrain a method call argument.
-
-
-
-
- Gets a constraint that considers any value of an argument as valid.
-
- This is a shortcut for the "Ignored"-property.
-
-
-
- Gets a constraint that considers any value of an argument as valid.
-
-
-
-
- Provides configuration for any (not a specific) call on a faked object.
-
-
-
-
- Gets a configuration object allowing for further configuration of
- any call to the specified faked object.
-
- The faked object to configure.
- A configuration object.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- A collection of method arguments.
-
-
-
-
- The arguments this collection contains.
-
-
-
-
- Initializes a new instance of the class.
-
- The arguments.
- The argument names.
-
-
-
- Initializes a new instance of the class.
-
- The arguments.
- The method.
-
-
-
- Returns an enumerator that iterates through the collection or arguments.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Gets the argument at the specified index.
-
- The type of the argument to get.
- The index of the argument.
- The argument at the specified index.
-
-
-
- Gets the argument with the specified name.
-
- The type of the argument to get.
- The name of the argument.
- The argument with the specified name.
-
-
-
- Gets an empty ArgumentList.
-
-
-
-
- Gets the number of arguments in the list.
-
-
-
-
- Gets the names of the arguments in the list.
-
-
-
-
- Gets the argument at the specified index.
-
- The index of the argument to get.
- The argument at the specified index.
-
-
-
- Provides validation extensions for .
-
-
-
-
- Constrains an argument so that it must be null (Nothing in VB).
-
- The type of the argument.
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Constrains the string argument to contain the specified text.
-
- The constraint manager to match the constraint.
- The string the argument string should contain.
- A dummy argument value.
-
-
-
- Constrains the sequence so that it must contain the specified value.
-
- The constraint manager to match the constraint.
- The value the collection should contain.
- The type of sequence.
- A dummy argument value.
-
-
-
- Constrains the string so that it must start with the specified value.
-
- The constraint manager to match the constraint.
- The value the string should start with.
- A dummy argument value.
-
-
-
- Constrains the string so that it must end with the specified value.
-
- The constraint manager to match the constraint.
- The value the string should end with.
- A dummy argument value.
-
-
-
- Constrains the string so that it must be null or empty.
-
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Constrains argument value so that it must be greater than the specified value.
-
- The constraint manager to match the constraint.
- The value the string should start with.
- The type of argument to constrain.
- A dummy argument value.
-
-
-
- The tested argument collection should contain the same elements as the
- as the specified collection.
-
- The constraint manager to match the constraint.
- The sequence to test against.
- The type of argument to constrain.
- A dummy argument value.
-
-
-
- Tests that the IEnumerable contains no items.
-
- The type of argument.
- The constraint manager to match the constraint.
- A dummy argument value.
-
-
-
- Tests that the passed in argument is equal to the specified value.
-
- The type of the argument.
- The constraint manager to match the constraint.
- The value to compare to.
- A dummy argument value.
-
-
-
- Tests that the passed in argument is the same instance (reference) as the specified value.
-
- The type of the argument.
- The constraint manager to match the constraint.
- The reference to compare to.
- A dummy argument value.
-
-
-
- Constrains the argument to be of the specified type.
-
- The type of argument in the method signature.
- The constraint manager.
- The type to constrain the argument with.
- A dummy value.
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- A human readable description of the constraint.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- A human readable description of the constraint format string.
-
-
- Arguments for the format string.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument with a predicate.
-
-
- The constraint manager.
-
-
- The predicate that should constrain the argument.
-
-
- The type of argument in the method signature.
-
-
- A dummy argument value.
-
-
-
-
- Constrains the argument to be not null (Nothing in VB) and to match
- the specified predicate.
-
- The type of the argument to constrain.
- The constraint manager.
- The predicate that constrains non null values.
- An action that writes a description of the constraint
- to the output.
- A dummy argument value.
-
-
-
- Provides string formatting for arguments of type T when written in call lists.
-
- The type of the arguments which will be formatted by this instance.
-
-
-
- Provides string formatting for arguments when written in
- call lists.
-
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets the type of arguments this formatter works on.
-
-
-
-
- Gets the priority of the formatter, when two formatters are
- registered for the same type the one with the highest
- priority is used.
-
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets a string representing the specified argument value.
-
- The argument value to get as a string.
- A string representation of the value.
-
-
-
- Gets the type of arguments this formatter works on.
-
-
-
-
- Gets the priority of the formatter, when two formatters are
- registered for the same type the one with the highest
- priority is used.
-
-
-
-
- Provides extension methods for the common uses.
-
-
-
-
- Replaces the format item in a specified System.String with the text equivalent
- of the value of a corresponding System.Object instance in a specified array using
- invariant culture as .
-
- A composite format string.
- An array containing zero or more objects to format.
- The formatted string.
-
-
-
- Gets an enumerable of tuples where the first value of each tuple is a value
- from the first collection and the second value of each tuple is the value at the same position
- from the second collection.
-
- The type of values in the first collection.
- The type of values in the second collection.
- The first of the collections to combine.
- The second of the collections to combine.
- An enumerable of tuples.
-
-
-
- Joins the collection to a string.
-
- The type of items in the collection.
- The items to join.
- A function that converts from an item to a string value.
- Separator to insert between each item.
- A string representation of the collection.
-
-
-
- Gets a dictionary containing the first element from the sequence that has a key specified by the key selector.
-
- The type of items in the sequence.
- The type of the key.
- The sequence.
- The key selector.
- A dictionary.
-
-
-
- Provides the base for rules that can be built using the FakeConfiguration.
-
-
-
-
- Represents a call rule that has a description of the calls the
- rule is applicable to.
-
-
-
-
- Allows for intercepting call to a fake object and
- act upon them.
-
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
- Writes a description of calls the rule is applicable to.
-
- The writer.
-
-
-
- Gets if this rule is applicable to the specified call.
-
- The call to validate.
- True if the rule applies to the call.
-
-
-
- Writes a description of calls the rule is applicable to.
-
- The writer to write the description to.
-
-
-
- Gets or sets an action that is called by the Apply method to apply this
- rule to a fake object call.
-
-
-
-
- Gets a collection of actions that should be invoked when the configured
- call is made.
-
-
-
-
- Gets or sets values to apply to output and reference variables.
-
-
-
-
- Gets or sets a value indicating whether the base method of the fake object call should be
- called when the fake object call is made.
-
-
-
-
- Gets or sets the number of times the configured rule should be used.
-
-
-
-
- Gets a description of calls the rule is applicable to.
-
-
-
-
-
- Configuration for any call to a faked object.
-
-
-
-
- Provides a way to configure predicates for when a call should be applied.
-
- The type of fake object that is going to be configured..
-
-
-
- Applies a predicate to constrain which calls will be considered for interception.
-
- A predicate for a fake object call.
- An action that writes a description of the predicate
- to the output.
- The configuration object.
-
-
-
- Provides configuration methods for methods that does not have a return value and
- allows the use to specify validations for arguments.
-
-
-
-
- Provides configuration methods for methods that does not have a return value.
-
-
-
-
- Configuration that lets the developer specify that an exception should be
- thrown by a fake object call.
-
-
-
-
- Hides standard Object members to make fluent interfaces
- easier to read. Found in the source of Autofac:
- Based on blog post here:
-
-
-
-
-
- Hides the ToString-method.
-
- A string representation of the implementing object.
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Returns a hash code for this instance.
-
-
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
-
-
-
-
- Gets the type.
-
- The exact runtime type of the current instance.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- A function that creates the exception to throw.
- Configuration object.
-
-
-
- Configuration for callbacks of fake object calls.
-
- The type of interface to return.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The action to invoke.
- A configuration object.
-
-
-
- Configuration that lets you specify that a fake object call should call it's base method.
-
-
-
-
- When the configured method or methods are called the call
- will be delegated to the base method of the faked method.
-
- A configuration object.
- The fake object is of an abstract type or an interface
- and no base method exists.
-
-
-
- Lets the developer configure output values of out and ref parameters.
-
-
-
-
- Specifies output values for out and ref parameters. Specify the values in the order
- the ref and out parameters has in the configured call, any non out and ref parameters are ignored.
-
- The values.
- A configuration object.
-
-
-
- Allows the developer to assert on a call that's configured.
-
-
-
-
- Asserts that the configured call has happened the number of times
- constrained by the repeatConstraint parameter.
-
- A constraint for how many times the call
- must have happened.
- The call has not been called a number of times
- that passes the repeat constraint.
-
-
-
- Configures the specified call to do nothing when called.
-
- A configuration object.
-
-
-
- Provides configurations to validate arguments of a fake object call.
-
- The type of interface to return.
-
-
-
- Configures the call to be accepted when the specified predicate returns true.
-
- The argument predicate.
- A configuration object.
-
-
-
- Matches calls that has the return type specified in the generic type parameter.
-
- The return type of the members to configure.
- A configuration object.
-
-
-
- Manages registration of a set of components in a DictionaryContainer.
-
-
-
-
- Registers the components of this module.
-
- The container to register components in.
-
-
-
- A factory that creates instances of the RecordingCallRuleType.
-
-
-
-
- Creates the specified fake object.
-
- The type of the fake.
- The fake object the rule belongs to.
- The rule that's being recorded.
- A RecordingCallRule instance.
-
-
-
- A factory responsible for creating start configuration for fake objects.
-
-
-
-
- Creates a start configuration for the specified fake object that fakes the
- specified type.
-
- The type of the fake object.
- The fake object to configure.
- A configuration object.
-
-
-
- An exception that can be thrown when something goes wrong with the configuration
- of a fake object.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Handles the configuration of fake object given an expression specifying
- a call on a faked object.
-
-
-
-
- Lets you set up expectations and configure repeat for the configured call.
-
-
-
-
- Provides configuration for method calls that has a return value.
-
-
-
-
- Specifies the number of times for the configured event.
-
- The number of times to repeat.
-
-
-
- A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration
- interfaces.
-
-
-
-
- Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>.
-
- The type of fake object that is configured.
-
-
-
- Configures a call that returns a value and allows the use to
- specify validations for arguments.
-
- The type of the member.
-
-
-
- Configures a call that returns a value.
-
- The type of the member.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- A function that produces the return value.
- A configuration object.
-
-
-
- Configurations for when a configured call is recorded.
-
-
-
-
- Provides configuration from VisualBasic.
-
-
-
-
- Provides methods for configuring a fake object.
-
- The type of fake object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The type of the return value of the member.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call is made to any method on the
- object.
-
- A configuration object.
-
-
-
- A call rule that has been recorded.
-
-
-
-
- A call rule that "sits and waits" for the next call, when
- that call occurs the recorded rule is added for that call.
-
- The type of the fake.
-
-
-
- Provides access to a set of calls and a call matcher for these calls.
-
-
-
-
- Provides access to a call matcher.
-
-
-
-
- Gets a call predicate that can be used to check if a fake object call matches
- the specified constraint.
-
-
-
-
- Gets the set of calls.
-
-
-
-
- Represents a delegate that creates a configuration object from
- a fake object and the rule to build.
-
- The rule that's being built.
- The fake object the rule is for.
- A configuration object.
-
-
-
- Represents a predicate that matches a fake object call.
-
-
-
-
- Gets a value indicating whether the call matches the predicate.
-
- The call to match.
- True if the call matches the predicate.
-
-
-
- Provides configuration of faked objects.
-
-
-
-
- Gets a configuration for the specified faked object.
-
- The type of the fake.
- The faked object to configure.
- A configuration object.
- The specified object is not a faked object.
- The fakedObject parameter was null.
-
-
-
- Represents an argument and a dummy value to use for that argument.
-
-
-
-
- Initializes a new instance of the class.
-
- A value indicating if the dummy value was successfully resolved.
- The type of argument.
- The resolved value.
-
-
-
- Gets a value indicating whether a dummy argument value was successfully
- resolved.
-
-
-
-
- Gets the type of the argument.
-
-
-
-
- Gets the resolved value.
-
-
-
-
- Holds a formatter as well as the distance between a type to be formatted
- and the type for which the formatted is registered.
-
-
-
-
- Represents an event that happens when a call has been intercepted by a proxy.
-
-
-
-
- Initializes a new instance of the class.
-
- The call.
-
-
-
- Gets the call that was intercepted.
-
- The call.
-
-
-
- Keeps track of metadata for interceptions.
-
-
-
-
- Gets whether the rule has been called the number of times specified or not.
-
- True if the rule has not been called the number of times specified.
-
-
-
- Gets or sets the number of times the rule has been used.
-
-
-
-
- Gets or sets the rule this metadata object is tracking.
-
-
-
-
- Manages attaching of argument constraints.
-
- The type of argument to constrain.
-
-
-
- Constrains the argument with a predicate.
-
- The predicate that should constrain the argument.
- An action that will be write a description of the constraint.
- A dummy argument value.
-
-
-
- Inverts the logic of the matches method.
-
-
-
-
- Validates an argument, checks that it's valid in a specific fake call.
-
-
-
-
- Writes a description of the argument constraint to the specified writer.
-
-
- The writer.
-
-
-
-
- Gets whether the argument is valid.
-
- The argument to validate.
- True if the argument is valid.
-
-
-
- Default implementation of .
-
-
-
-
- Attaches a fake manager to the proxy so that intercepted
- calls can be configured.
-
-
-
-
- Attaches a to the specified proxy, listening to
- the event raiser.
-
- The type of the fake object proxy.
- The proxy to attach to.
- The event raiser to listen to.
-
-
-
- Gets the fake manager associated with the proxy.
-
- The proxy to get the manager from.
- A fake manager.
-
-
-
- Attaches a to the specified proxy, listening to
- the event raiser.
-
- The type of the fake object proxy.
- The proxy to attach to.
- The event raiser to listen to.
-
-
-
- Gets the fake manager associated with the proxy.
-
- The proxy to get the manager from.
- A fake manager.
-
-
-
- Represents an object that can be tagged with another object. When implemented
- by a proxy returned from an FakeItEasy uses the tag
- to store a reference to the that handles that proxy.
-
-
-
-
- Gets or sets the tag.
-
-
-
-
- The default implementation of the IFakeObjectCallFormatter interface.
-
-
-
-
- Provides string formatting for fake object calls.
-
-
-
-
- Gets a human readable description of the specified
- fake object call.
-
- The call to get a description for.
- A description of the call.
-
-
-
- Gets a human readable description of the specified
- fake object call.
-
- The call to get a description for.
- A description of the call.
-
-
-
- Handles configuring of fake objects to delegate all their calls to a wrapped instance.
-
-
-
-
- Manages configuration of fake objects to wrap instances.
-
-
-
-
- Configures the specified faked object to wrap the specified instance.
-
- The faked object to configure.
- The instance to wrap.
- The recorder to use, null if no recording should be made.
-
-
-
- Configures the specified faked object to wrap the specified instance.
-
- The faked object to configure.
- The instance to wrap.
- The recorder to use, null if no recording should be made.
-
-
-
- A fake object container where delegates can be registered that are used to
- resolve fake objects.
-
-
-
-
- A container that can create fake objects.
-
-
-
-
- Handles global configuration of fake object.
-
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- Creates a dummy object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of dummy object to create.
- The dummy object that was created if the method returns true.
- True if a dummy object can be created.
-
-
-
- Initializes a new instance of the class.
- Creates a new instance of the DelegateFakeObjectContainer.
-
-
-
-
- Creates a fake object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of dummy object to create.
- The fake object that was created if the method returns true.
- True if a fake object can be created.
-
-
-
- Configures the fake.
-
- The type of fake.
- The fake object.
-
-
-
- Registers the specified fake delegate.
-
- The type of the return value of the method that encapsulates.
- The fake delegate.
-
-
-
- A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and
- IFakeConfigurations.
-
-
-
-
- Initializes a new instance of the class.
-
- The dummy definitions.
- The fake configurators.
-
-
-
- Creates a fake object of the specified type using the specified arguments if it's
- supported by the container, returns a value indicating if it's supported or not.
-
- The type of fake object to create.
- The fake object that was created if the method returns true.
- True if a fake object can be created.
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- An exception that is thrown when there was an error creating a fake object.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
- Auto fake property rule.
-
- The central point in the API for proxied fake objects handles interception
- of fake object calls by using a set of rules. User defined rules can be inserted
- by using the AddRule-method.
-
- Event rule.
- Object member rule.
- Property behavior rule.
- Property setter rule.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Adds a call rule to the fake object.
-
- The rule to add.
-
-
-
- Adds a call rule last in the list of user rules, meaning it has the lowest priority possible.
-
- The rule to add.
-
-
-
- Removes the specified rule for the fake object.
-
- The rule to remove.
-
-
-
- Adds an interception listener to the manager.
-
- The listener to add.
-
-
-
- Removes any specified user rules.
-
-
-
-
- Gets the faked object.
-
-
-
-
- Gets the faked type.
-
-
-
-
- Gets the interceptions that are currently registered with the fake object.
-
-
-
-
- Gets a collection of all the calls made to the fake object within the current scope.
-
-
-
-
- A delegate responsible for creating FakeObject instances.
-
- An instance of .
-
-
-
- Represents a call to a fake object at interception time.
-
-
-
-
- Represents a fake object call that can be edited.
-
-
-
-
- Represents a call to a fake object.
-
-
-
-
- Gets the method that's called.
-
-
-
-
- Gets the arguments used in the call.
-
-
-
-
- Gets the faked object the call is performed on.
-
-
-
-
- Sets the return value of the call.
-
- The return value to set.
-
-
-
- Calls the base method of the faked type.
-
-
-
-
- Sets the value of the argument at the specified index in the parameters list.
-
- The index of the argument to set the value of.
- The value to set to the argument.
-
-
-
- Freezes the call so that it can no longer be modified.
-
- A completed fake object call.
-
-
-
- Sets that the call should not be recorded by the fake manager.
-
-
-
-
- Represents a scope for fake objects, calls configured within a scope
- are only valid within that scope. Only calls made within a scope
- are accessible from within a scope so for example asserts will only
- assert on those calls done within the scope.
-
-
-
-
- Provides access to all calls made to fake objects within a scope.
- Scopes calls so that only calls made within the scope are visible.
-
-
-
-
- Creates a new scope and sets it as the current scope.
-
- The created scope.
-
-
-
- Creates a new scope and sets it as the current scope, using the specified
- container as the container for the new scope.
-
- The container to use for the new scope.
- The created scope.
-
-
-
- Closes the scope.
-
-
-
-
- Adds an intercepted call to the current scope.
-
- The fake object.
- The call that is intercepted.
-
-
-
- Adds a fake object call to the current scope.
-
- The fake object.
- The rule to add.
-
-
-
- Represents a completed call to a fake object.
-
-
-
-
- Gets the value set to be returned from the call.
-
-
-
-
- Used by the event raising rule of fake objects to get the event arguments used in
- a call to Raise.With.
-
-
-
-
- Gets the sender of the event.
-
-
-
-
- Gets the event arguments of the event.
-
-
-
-
- Represents a listener for fake object calls, can be plugged into a
- FakeManager instance to listen to all intercepted calls.
-
- The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any
- previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted
- method of any previously added listener.
-
-
-
- Called when the interception begins but before any call rules
- has been applied.
-
- The intercepted call.
-
-
-
- Called when the interception has been completed and rules has been
- applied.
-
- The intercepted call.
- The rule that was applied to the call.
-
-
-
- Handles comparisons of instances of .
-
-
-
-
- Gets a value indicating whether the two instances of would invoke the same method
- if invoked on an instance of the target type.
-
- The type of target for invocation.
- The first .
- The second .
- True if the same method would be invoked.
-
-
-
- A null implementation for the IFakeObjectContainer interface.
-
-
-
-
- Always returns false and sets the fakeObject to null.
-
- The type of dummy object to create.
- Output variable for the fake object that will always be set to null.
- Always return false.
-
-
-
- Applies base configuration to a fake object.
-
- The type the fake object represents.
- The fake object to configure.
-
-
-
- A call rule that applies to any call and just delegates the
- call to the wrapped object.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance.
-
-
- The object to wrap.
-
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
-
- An interface to be implemented by classes that can generate proxies for FakeItEasy.
-
-
-
-
- Generates a proxy of the specified type and returns a result object containing information
- about the success of the generation and the proxy if it was generated.
-
- The type of proxy to generate.
- Interfaces to be implemented by the proxy.
- Arguments to pass to the constructor of the type in .
- The custom attribute builders.
- A result containing the generated proxy.
-
-
-
- Generates a proxy of the specified type and returns a result object containing information
- about the success of the generation and the proxy if it was generated.
-
- The type of proxy to generate.
- Interfaces to be implemented by the proxy.
- Arguments to pass to the constructor of the type in .
- A result containing the generated proxy.
-
-
-
- Gets a value indicating whether the specified member can be intercepted by the proxy generator.
-
- The member to test.
- The instance the method will be called on.
- The reason the method can not be intercepted.
- True if the member can be intercepted.
-
-
-
- An object that raises an event every time a call to a proxy has been intercepted.
-
-
-
-
- Raised when a call is intercepted.
-
-
-
-
- An adapter that adapts an to a .
-
-
-
-
- Initializes a new instance of the class.
-
- The invocation.
-
-
-
- Freezes the call so that it can no longer be modified.
-
- A completed fake object call.
-
-
-
- Calls the base method, should not be used with interface types.
-
-
-
-
- Sets the specified value to the argument at the specified index.
-
- The index of the argument to set the value to.
- The value to set to the argument.
-
-
-
- Sets the return value of the call.
-
- The return value.
-
-
-
- Returns a description of the call.
-
-
- A that represents this instance.
-
-
-
-
- Gets a human readable description of the call.
-
-
-
-
-
- Gets the value set to be returned from the call.
-
-
-
-
- Gets the method that's called.
-
-
-
-
- Gets the arguments used in the call.
-
-
-
-
- Gets the faked object the call is performed on.
-
-
-
-
- A strongly-typed resource class, for looking up localized strings, etc.
-
-
-
-
- Returns the cached ResourceManager instance used by this class.
-
-
-
-
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
-
-
-
-
- Looks up a localized string similar to No constructor matches the passed arguments for constructor..
-
-
-
-
- Looks up a localized string similar to Arguments for constructor specified for interface type..
-
-
-
-
- Looks up a localized string similar to The type of proxy "{0}" is sealed..
-
-
-
-
- Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}..
-
-
-
-
- Looks up a localized string similar to No usable default constructor was found on the type {0}..
-
-
-
-
- The default implementation of the IFakeAndDummyManager interface.
-
-
-
-
- Handles the creation of fake and dummy objects.
-
-
-
-
- Creates a dummy of the specified type.
-
- The type of dummy to create.
- The created dummy.
- The current IProxyGenerator is not able to generate a fake of the specified type and
- the current IFakeObjectContainer does not contain the specified type.
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake object to generate.
- Options for building the fake object.
- A fake object.
- The current IProxyGenerator is not able to generate a fake of the specified type.
-
-
-
- Tries to create a dummy of the specified type.
-
- The type of dummy to create.
- Outputs the result dummy when creation is successful.
- A value indicating whether the creation was successful.
-
-
-
- Tries to create a fake object of the specified type.
-
- The type of fake to create.
- Options for the creation of the fake.
- The created fake object when creation is successful.
- A value indicating whether the creation was successful.
-
-
-
- Default implementation of the IFakeCreator-interface.
-
-
-
-
- A facade used by the public API for testability.
-
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake to create.
- Options for the created fake object.
- The created fake object.
- Was unable to generate the fake in the current configuration.
-
-
-
- Creates a dummy object, this can be a fake object or an object resolved
- from the current IFakeObjectContainer.
-
- The type of dummy to create.
- The created dummy.
- Was unable to generate the fake in the current configuration and
- no dummy was registered in the container for the specified type..
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
- A collection of fake objects of the specified type.
-
-
-
- Initializes a new instance of the class.
-
- The fake and dummy manager.
-
-
-
- Creates a fake object of the specified type.
-
- The type of fake to create.
- Options for the created fake object.
- The created fake object.
- Was unable to generate the fake in the current configuration.
-
-
-
- Creates a collection of fakes of the specified type.
-
- The type of fakes to create.
- The number of fakes in the collection.
-
- A collection of fake objects of the specified type.
-
-
-
-
- Creates a dummy object, this can be a fake object or an object resolved
- from the current IFakeObjectContainer.
-
- The type of dummy to create.
- The created dummy.
- Was unable to generate the fake in the current configuration and
- no dummy was registered in the container for the specified type..
-
-
-
- Provides options for fake wrappers.
-
- The type of the fake object generated.
-
-
-
- Provides options for generating fake object.
-
- The type of fake object generated.
-
-
-
- Specifies arguments for the constructor of the faked class.
-
- The arguments to pass to the constructor of the faked class.
- Options object.
-
-
-
- Specifies arguments for the constructor of the faked class by giving an expression with the call to
- the desired constructor using the arguments to be passed to the constructor.
-
- The constructor call to use when creating a class proxy.
- Options object.
-
-
-
- Specifies that the fake should delegate calls to the specified instance.
-
- The object to delegate calls to.
- Options object.
-
-
-
- Specifies that the fake should be created with these additional attributes.
-
- The attributes to build into the proxy.
- Options object.
-
-
-
- Sets up the fake to implement the specified interface in addition to the
- originally faked class.
-
- The type of interface to implement.
- Options object.
- The specified type is not an interface.
- The specified type is null.
-
-
-
- Specifies an action that should be run over the fake object
- once it's created.
-
- An action to perform.
- Options object.
-
-
-
- Specifies a fake recorder to use.
-
- The recorder to use.
- Options object.
-
-
-
- Initializes a new instance of the class.
-
- The container.
- The fake object creator.
-
-
-
- Contains the result of a call to TryCreateProxy of IProxyGenerator.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a failed proxy
- generation attempt.
-
-
- The reason the proxy generation failed.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a failed proxy
- generation attempt due to an exception being caught.
-
-
- The reason the proxy generation failed.
-
-
- The exception thrown from the creation attempt.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new instance representing a successful proxy
- generation.
-
-
- The proxy that was generated.
-
-
- An event raiser that raises
- events when calls are intercepted to the proxy.
-
-
-
-
- Gets a value indicating whether the proxy was successfully created.
-
-
-
-
- Gets the generated proxy when it was successfully created.
-
-
-
-
- Gets the event raiser that raises events when calls to the proxy are
- intercepted.
-
-
-
-
- Gets the reason for failure when the generation was not successful.
-
-
-
-
- Represents a text writer that writes to the output.
-
-
-
-
- Writes the specified value to the output.
-
- The value to write.
- The writer for method chaining.
-
-
-
- Formats the specified argument value as a string and writes
- it to the output.
-
- The value to write.
- The writer for method chaining.
-
-
-
- Indents the writer.
-
- A disposable that will unindent the writer when disposed.
-
-
-
- Represents a definition of how a fake object of the type T should
- be created.
-
- The type of fake.
-
-
-
- Represents a definition of how dummies of the specified type should be created.
-
-
-
-
- Creates the fake.
-
- The fake object.
-
-
-
- Gets the type of fake object the definition is for.
-
-
-
-
- Creates the dummy.
-
- The dummy object.
-
-
-
- Creates the dummy.
-
- The dummy object.
-
-
-
- Gets the type the definition is for.
-
- For type.
-
-
-
- A strongly-typed resource class, for looking up localized strings, etc.
-
-
-
-
- Returns the cached ResourceManager instance used by this class.
-
-
-
-
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
-
-
-
-
- Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set..
-
-
-
-
- Looks up a localized string similar to The specified argument name does not exist in the ArgumentList..
-
-
-
-
- Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type..
-
-
-
-
- Looks up a localized string similar to An argument validation was not configured correctly..
-
-
-
-
- Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times..
-
-
-
-
- Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times..
-
-
-
-
- Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake.
-
- The following constructors failed:
- {1}.
-
-
-
-
- Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked..
-
-
-
-
- Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter..
-
-
-
-
- Looks up a localized string similar to
-
- The current proxy generator failed to create a proxy with the specified arguments for the constructor:
-
- Reason for failure:
- - {0}
-
- .
-
-
-
-
- Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}".
-
- 1. The type is not registered in the current IFakeObjectContainer.
- 2. The current IProxyGenerator failed to generate a proxy for the following reason:
-
- {1}.
-
-
-
-
- Looks up a localized string similar to Unable to create fake object..
-
-
-
-
- Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead..
-
-
-
-
- Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body..
-
-
-
-
- Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator..
-
-
-
-
- Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid..
-
-
-
-
- Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}..
-
-
-
-
- Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call..
-
-
-
-
- Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid..
-
-
-
-
- Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted..
-
-
-
-
- Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised..
-
-
-
-
- Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call..
-
-
-
-
- Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one..
-
-
-
-
- Looks up a localized string similar to The specified call is not made on a fake object..
-
-
-
-
- Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}..
-
-
-
-
- Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this..
-
-
-
-
- Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:.
-
-
-
-
- Looks up a localized string similar to The number of argument names does not match the number of arguments..
-
-
-
-
- An exception thrown when an expectation is not met (when asserting on fake object calls).
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Represents a class that can parse a lambda expression
- that represents a method or property call.
-
-
-
-
- Parses the specified expression.
-
- The expression to parse.
- The parsed expression.
-
-
-
- Handles the matching of fake object calls to expressions.
-
-
-
-
- Initializes a new instance of the class.
-
- The call specification.
- The constraint factory.
- The method info manager to use.
- A parser to use to parse call expressions.
-
-
-
- Matches the specified call against the expression.
-
- The call to match.
- True if the call is matched by the expression.
-
-
-
- Gets a description of the call.
-
- Description of the call.
-
-
-
- Gets a human readable description of calls that will be matched by this
- matcher.
-
-
-
-
- An implementation of the interface that uses
- expressions for evaluating if the rule is applicable to a specific call.
-
-
-
-
- Initializes a new instance of the class.
-
- The expression matcher to use.
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Handles the instantiation of ExpressionCallRule instance.
-
- An expression specifying the call.
- A rule instance.
-
-
-
- Manages breaking call specification expression into their various parts.
-
-
-
-
- Manages breaking call specification expression into their various parts.
-
-
-
-
- Gets the fake object an expression is called on.
-
- The call expression.
- The FakeManager instance that manages the faked object the call is made on.
- The fakeObjectCall is null.
- The specified expression is not an expression where a call is made to a faked object.
-
-
-
- Gets the fake object an expression is called on.
-
- The call expression.
- A FakeObject.
- The fakeObjectCall is null.
- The specified expression is not an expression where a call is made to a faked object.
-
-
-
- Provides extension methods for configuring and asserting on faked objects
- without going through the static methods of the Fake-class.
-
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The type of fake object to configure.
- The type of the return value of the member.
- The faked object to configure.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call that matches the specified
- call happens.
-
- The faked object to configure.
- The type of fake object to configure.
- An expression that specifies the calls to configure.
- A configuration object.
-
-
-
- Configures the behavior of the fake object when a call is made to any method on the
- object.
-
- The type of the fake.
- The faked object.
- A configuration object.
-
-
-
- Provides an extension method for configuring fake objects.
-
-
-
-
- Gets an object that provides a fluent interface syntax for configuring
- the fake object.
-
- The type of the fake object.
- The fake object to configure.
- A configuration object.
- The fakedObject was null.
- The object passed in is not a faked object.
-
-
-
- Provides static methods for accessing fake objects.
-
-
-
-
- Gets the fake object that manages the faked object.
-
- The faked object to get the manager object for.
- The fake object manager.
-
-
-
- Creates a new scope and sets it as the current scope. When inside a scope the
- getting the calls made to a fake will return only the calls within that scope and when
- asserting that calls were made, the calls must have been made within that scope.
-
- The created scope.
-
-
-
- Creates a new scope and sets it as the current scope. When inside a scope the
- getting the calls made to a fake will return only the calls within that scope and when
- asserting that calls were made, the calls must have been made within that scope.
-
- The container to use within the specified scope.
- The created scope.
-
-
-
- Gets a value indicating whether the two objects are equal.
-
- The first object to compare.
- The second object to compare.
- True if the two objects are equal.
-
-
-
- Gets a value indicating whether the two objects are the same reference.
-
- The object A.
- The object B.
- True if the objects are the same reference.
-
-
-
- Gets all the calls made to the specified fake object.
-
- The faked object.
- A collection containing the calls to the object.
- The object passed in is not a faked object.
-
-
-
- Clears the configuration of the faked object.
-
- The faked object to clear the configuration of.
-
-
-
- Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified
- fixture.
-
- The object to initialize.
-
-
-
- Represents a fake object that provides an API for configuring a faked object, exposed by the
- FakedObject-property.
-
- The type of the faked object.
-
-
-
- Initializes a new instance of the class.
- Creates a new fake object.
-
-
-
-
- Initializes a new instance of the class.
- Creates a new fake object using the specified options.
-
-
- Options used to create the fake object.
-
-
-
-
- Configures calls to the specified member.
-
- An expression specifying the call to configure.
- A configuration object.
-
-
-
- Configures calls to the specified member.
-
- The type of value the member returns.
- An expression specifying the call to configure.
- A configuration object.
-
-
-
- Configures any call to the fake object.
-
- A configuration object.
-
-
-
- Gets the faked object.
-
-
-
-
- Gets all calls made to the faked object.
-
-
-
-
- Used to tag fields and properties that will be initialized through the
- Fake.Initialize-method.
-
-
-
-
- Provides the base implementation for the IFakeConfigurator-interface.
-
- The type of fakes the configurator can configure.
-
-
-
- Provides configurations for fake objects of a specific type.
-
-
-
-
- Applies the configuration for the specified fake object.
-
- The fake object to configure.
-
-
-
- Gets the type the instance provides configuration for.
-
-
-
-
- Configures the fake.
-
- The fake object.
-
-
-
- Applies the configuration for the specified fake object.
-
- The fake object to configure.
-
-
-
- Asserts the type of the that fake is of correct.
-
- The fake object.
-
-
-
- Gets the type the instance provides configuration for.
-
-
-
-
-
- Provides extension methods for fake objects.
-
-
-
-
- Specifies NumberOfTimes(1) to the IRepeatConfiguration{TFake}.
-
- The configuration to set repeat 1 to.
-
-
-
- Specifies NumberOfTimes(2) to the IRepeatConfiguration{TFake}.
-
- The configuration to set repeat 2 to.
-
-
-
- Specifies that a call to the configured call should be applied no matter what arguments
- are used in the call to the faked object.
-
- The type of the interface.
- The configuration.
- A configuration object.
-
-
-
- Filters to contain only the calls that matches the call specification.
-
- The type of fake the call is made on.
- The calls to filter.
- The call to match on.
- A collection of the calls that matches the call specification.
-
-
-
- Asserts that the specified call must have happened once or more.
-
- The configuration to assert on.
-
-
-
- Asserts that the specified has not happened.
-
- The configuration to assert on.
-
-
-
- Configures the call to return the next value from the specified sequence each time it's called. Null will
- be returned when all the values in the sequence has been returned.
-
-
- The type of return value.
-
-
- The call configuration to extend.
-
-
- The values to return in sequence.
-
-
-
-
- Specifies the value to return when the configured call is made.
-
- The type of the return value.
- The configuration to extend.
- The value to return.
- A configuration object.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The type of the return value.
- The configuration to extend.
- A function that produces the return value.
- A configuration object.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The type of the return value.
- Type of the first argument of the faked method call.
- The configuration to extend.
- A function that produces the return value.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Specifies a function used to produce a return value when the configured call is made.
- The function will be called each time this call is made and can return different values
- each time.
-
- The configuration to extend.
- A function that produces the return value.
- The type of the return value.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- A configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Writes the calls in the collection to the specified text writer.
-
- The type of the calls.
- The calls to write.
- The writer to write the calls to.
-
-
-
- Writes all calls in the collection to the console.
-
- The type of the calls.
- The calls to write.
-
-
-
- Gets the argument at the specified index in the arguments collection
- for the call.
-
- The type of the argument to get.
- The call to get the argument from.
- The index of the argument.
- The value of the argument with the specified index.
-
-
-
- Gets the argument with the specified name in the arguments collection
- for the call.
-
- The type of the argument to get.
- The call to get the argument from.
- The name of the argument.
- The value of the argument with the specified name.
-
-
-
- Makes the fake strict, this means that any call to the fake
- that has not been explicitly configured will throw an exception.
-
- The type of fake object.
- The configuration.
- A configuration object.
-
-
-
- Applies a predicate to constrain which calls will be considered for interception.
-
-
- The return type of the where method.
-
-
- The configuration object to extend.
-
-
- A predicate for a fake object call.
-
- to the output.
-
- The configuration object.
-
-
-
-
- Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed.
-
- The type of fake object.
- The configuration that is extended.
- The to invoke.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Executes the specified action when a matching call is being made.
-
- The configuration that is extended.
- The to invoke.
- The type of fake object.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- The signatures of the faked method and the do not match.
- The fake object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- The exception to throw when a call that matches is invoked.
- Configuration object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Configuration object.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- A function that returns the exception to throw when invoked.
- Type of the first argument of the faked method call.
- Type of the second argument of the faked method call.
- Type of the third argument of the faked method call.
- Type of the fourth argument of the faked method call.
- Configuration object.
- The signatures of the faked method and the do not match.
-
-
-
- Throws the specified exception when the currently configured
- call gets called.
-
- The configuration to use.
- The type of exception to throw.
- Configuration object.
-
-
-
- Provides methods for guarding method arguments.
-
-
-
-
- Throws an exception if the specified argument is null.
-
- The argument.
- Name of the argument.
- The specified argument was null.
-
-
-
- When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked.
-
-
-
-
- Gets the value produced by the specified expression when compiled and invoked.
-
- The expression to get the value from.
- The value produced by the expression.
-
-
-
- Provides access to the file system.
-
-
-
-
- Opens the specified file in the specified mode.
-
- The full path and name of the file to open.
- The mode to open the file in.
- A stream for reading and writing the file.
-
-
-
- Gets a value indicating whether the specified file exists.
-
- The path and name of the file to check.
- True if the file exists.
-
-
-
- Creates a file with the specified name.
-
- The name of the file to create.
-
-
-
- A simple implementation of an IoC container.
-
-
-
-
- The dictionary that stores the registered services.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Resolves an instance of the specified component type.
-
- Type of the component.
- An instance of the component type.
-
-
-
- Registers the specified resolver.
-
- The type of component to register.
- The resolver.
-
-
-
- Registers the specified resolver as a singleton.
-
- The type of component to register.
- The resolver.
-
-
-
- Provides properties and methods to specify repeat.
-
-
-
-
- Specifies the number of times as repeat.
-
- The number of times expected.
- A Repeated instance.
-
-
-
- Specifies once as the repeat.
-
-
-
-
- Specifies twice as the repeat.
-
-
-
-
- Lets you specify options for the next call to a fake object.
-
-
-
-
- Specifies options for the next call to the specified fake object. The next call will
- be recorded as a call configuration.
-
- The type of the faked object.
- The faked object to configure.
- A call configuration object.
-
-
-
- Provides functionality for making ordered assertions on fakes.
-
-
-
-
- Creates a scope that changes the behavior on asserts so that all asserts within
- the scope must be to calls in the specified collection of calls. Calls must have happened
- in the order that the asserts are specified or the asserts will fail.
-
- The calls to assert among.
- A disposable used to close the scope.
-
-
-
- Provides static methods for the IOutputWriter-interface.
-
-
-
-
- Writes a new line to the writer.
-
- The writer to write to.
- The writer.
-
-
-
- Writes the format string to the writer.
-
- The writer to write to.
- The format string to write.
- Replacements for the format string.
- The writer.
-
-
-
- Writes the specified object to the writer (using the ToString-method of the object).
-
- The writer to write to.
- The value to write to the writer.
- The writer.
-
-
-
- Allows the developer to raise an event on a faked object.
-
-
-
-
- Raises an event on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
- The type of the event args.
- The sender of the event.
- The instance containing the event data.
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
- Raises an event on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
- The type of the event arguments.
- The instance containing the event data.
-
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
-
- Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method
- to the event that is to be raised.
-
-
- A Raise(TEventArgs)-object that exposes the event handler to attach.
-
-
-
-
- A class exposing an event handler to attach to an event of a faked object
- in order to raise that event.
-
- The type of the event args.
-
-
-
- Register this event handler to an event on a faked object in order to raise that event.
-
- The sender of the event.
- Event args for the event.
-
-
-
- Gets a generic event handler to attach to the event to raise.
-
-
-
-
- Provides methods for creating recorders for self initializing fakes.
-
-
-
-
- Provides syntax for specifying the number of times a call must have been repeated when asserting on
- fake object calls.
-
- A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly);
-
-
-
- Specifies that a call must have been repeated a number of times
- that is validated by the specified repeatValidation argument.
-
- A predicate that specifies the number of times
- a call must have been made.
- A Repeated-instance.
-
-
-
- When implemented gets a value indicating if the repeat is matched
- by the Happened-instance.
-
- The repeat of a call.
- True if the repeat is a match.
-
-
-
- Asserts that a call has not happened at all.
-
-
-
-
- The call must have happened exactly the number of times that is specified in the next step.
-
-
-
-
- The call must have happened any number of times greater than or equal to the number of times that is specified
- in the next step.
-
-
-
-
- The call must have happened any number of times less than or equal to the number of times that is specified
- in the next step.
-
-
-
-
- Handles the registration of root dependencies in an IoC-container.
-
-
-
-
- Registers the dependencies.
-
- The container to register the dependencies in.
-
-
-
- DTO for recorded calls.
-
-
-
-
- Initializes a new instance of the class.
-
- The method.
- The output arguments.
- The return value.
-
-
-
- Gets the method that was called.
-
- The method.
-
-
-
- Gets the output arguments of the call.
-
- The output arguments.
-
-
-
- Gets the return value of the call.
-
- The return value.
-
-
-
- Represents storage for recorded calls for self initializing
- fakes.
-
-
-
-
- Loads the recorded calls for the specified recording.
-
- The recorded calls for the recording with the specified id.
-
-
-
- Saves the specified calls as the recording with the specified id,
- overwriting any previous recording.
-
- The calls to save.
-
-
-
- An interface for recorders that provides stored responses for self initializing fakes.
-
-
-
-
- Applies the call if the call has been recorded.
-
- The call to apply to from recording.
-
-
-
- Records the specified call.
-
- The call to record.
-
-
-
- Gets a value indicating whether the recorder is currently recording.
-
-
-
-
- An exception that can be thrown when recording for self initialized
- fakes fails or when playback fails.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The message.
-
-
-
- Initializes a new instance of the class.
-
- The message.
- The inner exception.
-
-
-
- Manages the applying of recorded calls and recording of new calls when
- using self initialized fakes.
-
-
-
-
- Initializes a new instance of the class.
-
- The storage.
-
-
-
- Applies the call if the call has been recorded.
-
- The call to apply to from recording.
-
-
-
- Records the specified call.
-
- The call to record.
-
-
-
- Saves all recorded calls to the storage.
-
-
-
-
- Gets a value indicating whether the recorder is currently recording.
-
-
-
-
-
- Represents a factory responsible for creating recording manager
- instances.
-
- The storage the manager should use.
- A RecordingManager instance.
-
-
-
- A call rule use for self initializing fakes, delegates call to
- be applied by the recorder.
-
-
-
-
- Initializes a new instance of the class.
-
- The wrapped rule.
- The recorder.
-
-
-
- Gets whether this interceptor is applicable to the specified
- call, if true is returned the Apply-method of the interceptor will
- be called.
-
- The call to check for applicability.
- True if the interceptor is applicable.
-
-
-
- Applies an action to the call, might set a return value or throw
- an exception.
-
- The call to apply the interceptor to.
-
-
-
- Gets the number of times this call rule is valid, if it's set
- to null its infinitely valid.
-
-
-
-
-
- An attribute that can be applied to code that should be fixed because there's a
- code smell.
-
-
-
-
- Gets or sets the description of the smell.
-
-
-
-
- Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method.
-
-
-
-
- Fixes so that existing Serializable-attributes are omitted in the compilation
- of the silverlight project.
-
-
-
-
- Fixes so that existing NonSerialized-attributes are omitted in the compilation
- of the silverlight project.
-
-
-
-
diff --git a/dep/repositories.config b/dep/repositories.config
index ee09227463b..bc0d4524401 100644
--- a/dep/repositories.config
+++ b/dep/repositories.config
@@ -9,7 +9,6 @@
-
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs
index 83dc14c673a..ffd7f1d253d 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs
@@ -133,11 +133,11 @@ public static void PatchMethod(CsharpMethod method)
Regex.Replace(method.FullName, m, (a) => a.Index != method.FullName.IndexOf(m) ? "" : m);
string manualOverride;
- var key = method.QueryStringParamName.Replace("QueryString", "");
+ var key = method.QueryStringParamName.Replace("RequestParameters", "");
if (MethodNameOverrides.TryGetValue(key, out manualOverride))
- method.QueryStringParamName = manualOverride + "QueryString";
+ method.QueryStringParamName = manualOverride + "RequestParameters";
- method.DescriptorType = method.QueryStringParamName.Replace("QueryString","Descriptor");
+ method.DescriptorType = method.QueryStringParamName.Replace("RequestParameters","Descriptor");
string generic;
if (KnownDescriptors.TryGetValue(method.DescriptorType, out generic))
@@ -195,17 +195,17 @@ public static void GenerateDescriptors(RestApiSpec model)
File.WriteAllText(targetFile, source);
}
- public static void GenerateQueryStringParameters(RestApiSpec model)
+ public static void GenerateRequestParameters(RestApiSpec model)
{
- var targetFile = _esNetFolder + @"Domain\QueryStringParameters.Generated.cs";
- var source = _razorMachine.Execute(File.ReadAllText(_viewFolder + @"QueryStringParameters.Generated.cshtml"), model).ToString();
+ var targetFile = _esNetFolder + @"Domain\RequestParameters.Generated.cs";
+ var source = _razorMachine.Execute(File.ReadAllText(_viewFolder + @"RequestParameters.Generated.cshtml"), model).ToString();
File.WriteAllText(targetFile, source);
}
- public static void GenerateQueryStringParametersExtensions(RestApiSpec model)
+ public static void GenerateRequestParametersExtensions(RestApiSpec model)
{
- var targetFile = _nestFolder + @"Domain\QueryStringParametersExtensions.Generated.cs";
- var source = _razorMachine.Execute(File.ReadAllText(_viewFolder + @"QueryStringParametersExtensions.Generated.cshtml"), model).ToString();
+ var targetFile = _nestFolder + @"Domain\RequestParametersExtensions.Generated.cs";
+ var source = _razorMachine.Execute(File.ReadAllText(_viewFolder + @"RequestParametersExtensions.Generated.cshtml"), model).ToString();
File.WriteAllText(targetFile, source);
}
public static void GenerateEnums(RestApiSpec model)
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj b/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj
index e1fe83df2bd..156731f93fe 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj
@@ -47,7 +47,8 @@
..\..\..\dep\CsQuery.1.3.4\lib\net40\CsQuery.dll
-
+
+ False..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll
@@ -87,12 +88,12 @@
-
+
-
+
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs
index 2972e339bc2..5de2a82bdf7 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs
@@ -13,7 +13,7 @@ public IEnumerable MethodArguments
{
var methodArgs = CsharpMethod.Parts
.Select(p => (p.Name != "body") ? "pathInfo." + p.Name.ToPascalCase() : "body")
- .Concat(new[] {"u => pathInfo.QueryString"});
+ .Concat(new[] {"u => pathInfo.RequestParameters"});
return methodArgs;
}
}
@@ -145,7 +145,7 @@ public IEnumerable CsharpMethods
{
this.Url.Params = new Dictionary();
}
- queryStringParamName = this.CsharpMethodName + "QueryString";
+ queryStringParamName = this.CsharpMethodName + "RequestParameters";
var paraIndent = "\r\n\t\t///";
var explanationOfT =
paraIndent + " - If T is of type byte[] deserialization will be shortcircuited"
@@ -156,6 +156,7 @@ public IEnumerable CsharpMethods
QueryStringParamName = queryStringParamName,
ReturnType = "ElasticsearchResponse",
ReturnTypeGeneric = "",
+ CallTypeGeneric = "T",
ReturnDescription =
"ElasticsearchResponse<T> holding the reponse body deserialized as T."
+ explanationOfT,
@@ -170,8 +171,7 @@ public IEnumerable CsharpMethods
args = args.Concat(new[]
{
- "Func<"+apiMethod.QueryStringParamName+", " + apiMethod.QueryStringParamName + "> queryString = null",
- "object deserializationState = null"
+ "Func<"+apiMethod.QueryStringParamName+", " + apiMethod.QueryStringParamName + "> requestParameters = null"
}).ToList();
apiMethod.Arguments = string.Join(", ", args);
yield return apiMethod;
@@ -181,6 +181,7 @@ public IEnumerable CsharpMethods
QueryStringParamName = queryStringParamName,
ReturnType = "Task>",
ReturnTypeGeneric = "",
+ CallTypeGeneric = "T",
ReturnDescription =
"A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T."
+ explanationOfT,
@@ -196,7 +197,6 @@ public IEnumerable CsharpMethods
yield return apiMethod;
//No need for deserialization state when returning dynamicdictionary
- args = args.Take(args.Count() - 1).ToList();
var explanationOfDynamic =
paraIndent +
@@ -206,11 +206,15 @@ public IEnumerable CsharpMethods
+ paraIndent +
" - can be safely dispatched to a nullable type even if intermediate properties do not exist";
+ var defaultBoundGeneric = Url.Path.Contains("_cat") ? "string" : "DynamicDictionary";
+
apiMethod = new CsharpMethod
{
QueryStringParamName = queryStringParamName,
- ReturnType = "ElasticsearchResponse",
+ ReturnType = string.Format("ElasticsearchResponse<{0}>", defaultBoundGeneric),
ReturnTypeGeneric = null,
+ CallTypeGeneric = defaultBoundGeneric == "DynamicDictionary"
+ ? "Dictionary" : defaultBoundGeneric,
ReturnDescription =
"ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary"
+ explanationOfDynamic,
@@ -228,8 +232,10 @@ public IEnumerable CsharpMethods
apiMethod = new CsharpMethod
{
QueryStringParamName = queryStringParamName,
- ReturnType = "Task>",
+ ReturnType = string.Format("Task>", defaultBoundGeneric),
ReturnTypeGeneric = null,
+ CallTypeGeneric = defaultBoundGeneric == "DynamicDictionary"
+ ? "Dictionary" : defaultBoundGeneric,
ReturnDescription =
"Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary"
+ explanationOfDynamic,
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs
index 6247eeebae1..36d3e225fb2 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs
@@ -6,6 +6,7 @@ public class CsharpMethod
{
public string ReturnType { get; set; }
public string ReturnTypeGeneric { get; set; }
+ public string CallTypeGeneric { get; set; }
public string ReturnDescription { get; set; }
public string FullName { get; set; }
public string QueryStringParamName { get; set; }
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Program.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/Program.cs
index fecd3e42799..c59e7a3d5d0 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Program.cs
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Program.cs
@@ -15,8 +15,8 @@ static void Main(string[] args)
ApiGenerator.GenerateClientInterface(spec);
- ApiGenerator.GenerateQueryStringParameters(spec);
- ApiGenerator.GenerateQueryStringParametersExtensions(spec);
+ ApiGenerator.GenerateRequestParameters(spec);
+ ApiGenerator.GenerateRequestParametersExtensions(spec);
ApiGenerator.GenerateDescriptors(spec);
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml
index 5c3b17467a2..cb6dc364e80 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml
@@ -42,11 +42,10 @@ namespace Elasticsearch.Net
{
@Raw("///")@part.Description@Raw("")
}
- @Raw("///Optional function to specify any additional querystring parameters for the request.")
- if (!string.IsNullOrWhiteSpace(method.ReturnTypeGeneric))
- {
- @Raw("///Optional state that will be passed to the deserialization call for the response")
- }
+ @Raw(@"///
+ ///Optional function to specify any additional request parameters
+ ///Querystring values, connection configuration specific to this request, deserialization state.
+ ///")@Raw("///"+method.ReturnDescription)
///@Raw("")public @Raw(method.ReturnType) @(method.FullName)@(Raw(method.ReturnTypeGeneric))(@Raw(method.Arguments))
@@ -63,23 +62,26 @@ namespace Elasticsearch.Net
{
var url = "@(url)";
}
- NameValueCollection nv = null;
- if (queryString != null)
+ BaseRequestParameters requestParams = null;
+ if (requestParameters != null)
+ {
+ requestParams = requestParameters(new @(method.QueryStringParamName)()@(url.StartsWith("_cat") ? Raw(".RequestConfiguration(r=>r.ContentType(\"text/plain\"))") : null));
+ ToNameValueCollection(requestParams);
+ }
+ @if (url.StartsWith("_cat"))
{
- var qs = queryString(new @(method.QueryStringParamName)());
- if (qs != null) nv = this.ToNameValueCollection(qs);
+ else requestParams = new @(method.QueryStringParamName)().RequestConfiguration(r=>r.ContentType("text/plain"));
}
+
@{
bool isAsync = method.ReturnType.StartsWith("Task<");
string requestMethod = isAsync ? "DoRequestAsync" : "DoRequest";
- bool wrap = method.ReturnTypeGeneric == null;
+ bool wrap = method.CallTypeGeneric == "Dictionary";
}
- return @(wrap ? "ElasticsearchResponse.Wrap"+ (isAsync ? "Async" : "") +"(" : "")this.@(requestMethod)@(Raw(method.ReturnTypeGeneric ?? ">"))("@method.HttpMethod", url@(method.Parts.Any(pp=>pp.Name == "body") ? ", body" : ", data: null"),
- queryString: nv
- @if(!string.IsNullOrWhiteSpace(method.ReturnTypeGeneric))
- {
- , deserializationState: deserializationState
- } )@(wrap ? ")" : "");
+ return @(wrap ? "ElasticsearchResponse.Wrap"+ (isAsync ? "Async" : "") +"(" : "")this.@(requestMethod)@(Raw("<" + method.CallTypeGeneric + ">"))(
+ "@method.HttpMethod", url@(method.Parts.Any(pp=>pp.Name == "body") ? ", body" : ", data: null"),
+ requestParameters: requestParams
+ )@(wrap ? ")" : "");
}
}
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml
index bca49c16fdb..e85343e14e9 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml
@@ -39,11 +39,10 @@ namespace Elasticsearch.Net
{
@Raw("///")@part.Description@Raw("")
}
- @Raw("///Optional function to specify any additional querystring parameters for the request.")
- @if (!string.IsNullOrWhiteSpace(method.ReturnTypeGeneric))
- {
- @Raw("///Optional state that will be passed to the deserialization call for the response")
- }
+ @Raw(@"///
+ ///Optional function to specify any additional request parameters
+ ///Querystring values, connection configuration specific to this request, deserialization state.
+ ///")
@Raw("///"+method.ReturnDescription)
///@Raw("")
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml
index 196d1c183ff..ccccda65839 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml
@@ -36,7 +36,7 @@ namespace Nest
foreach(var gen in generate)
{
- internal @Raw(gen.Returns) @(Raw(gen.Name))(ElasticsearchPathInfo<@peek.QueryStringParamName> pathInfo @if (endpoint.Body != null) {, object body}, object deserializationState = null)
+ internal @Raw(gen.Returns) @(Raw(gen.Name))(ElasticsearchPathInfo<@peek.QueryStringParamName> pathInfo @if (endpoint.Body != null) {, object body})
{
switch(pathInfo.HttpMethod)
{
@@ -55,18 +55,18 @@ namespace Nest
//@method.HttpMethod @method.Path
if (i == 0 && !dispatch.IfChecks.Any())
{
- return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState);
+ return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)));
}
else
{
if (dispatch.IfChecks.Any())
{
if (@Raw(string.Join(" && ", dispatch.IfChecks)))
- return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState);
+ return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)));
}
else
{
- return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState);
+ return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)));
}
}
if (i == totalDispatches - 1 && allWithIfChecks)
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParameters.Generated.cshtml
similarity index 94%
rename from src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml
rename to src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParameters.Generated.cshtml
index 409d33b2f92..bcceb23e739 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParameters.Generated.cshtml
@@ -23,7 +23,7 @@ namespace Elasticsearch.Net
///@method.Documentation
///
///
- public class @method.QueryStringParamName : FluentQueryString<@method.QueryStringParamName>
+ public class @method.QueryStringParamName : FluentRequestParameters<@method.QueryStringParamName>
{
@foreach (KeyValuePair kv in method.Url.Params)
{
diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParametersExtensions.Generated.cshtml
similarity index 93%
rename from src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml
rename to src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParametersExtensions.Generated.cshtml
index b1d98b78937..749b7665e4c 100644
--- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml
+++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParametersExtensions.Generated.cshtml
@@ -12,13 +12,13 @@ using System.Linq.Expressions;
using Elasticsearch.Net;
using Nest.Resolvers;
-///This file contains all the typed querystring parameters that are generated of the client spec.
+///This file contains all the typed request parameters that are generated of the client spec.
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
///Generated of commit @Model.Commit
namespace Nest
{
- public static class QueryStringPameterExtensions
+ public static class RequestPameterExtensions
{
@foreach (CsharpMethod method in Model.CsharpMethodsWithQueryStringInfo)
{
diff --git a/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj b/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj
index 8d7ca1eaf63..9c61d2b5620 100644
--- a/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj
+++ b/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj
@@ -45,7 +45,8 @@
..\..\..\dep\Moq.4.2.1312.1622\lib\net40\Moq.dll
-
+
+ False..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll
diff --git a/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs b/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs
index fe7fbb5bd7b..205e7e8af67 100644
--- a/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs
+++ b/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs
@@ -9,121 +9,110 @@
namespace Elasticsearch.Net.Connection.HttpClient
{
- public class ElasticsearchHttpClient : IConnection
- {
- private IConnectionConfigurationValues _settings;
-
- public ElasticsearchHttpClient(IConnectionConfigurationValues settings)
- {
- _settings = settings;
- }
-
- public ElasticsearchResponse DoSyncRequest(string method, Uri uri, byte[] data = null)
- {
- var client = new System.Net.Http.HttpClient();
- HttpResponseMessage response = null;
- HttpContent content = null;
+ public class ElasticsearchHttpClient : IConnection
+ {
+ private IConnectionConfigurationValues _settings;
+
+ public ElasticsearchHttpClient(IConnectionConfigurationValues settings)
+ {
+ _settings = settings;
+ }
+
+ public ElasticsearchResponse DoSyncRequest(string method, Uri uri, byte[] data = null)
+ {
+ var client = new System.Net.Http.HttpClient();
+ HttpResponseMessage response = null;
+ HttpContent content = null;
if (data != null)
content = new ByteArrayContent(data);
- switch (method.ToLower())
- {
- case "head":
- response = client.SendAsync(new HttpRequestMessage(HttpMethod.Head, uri) ).Result;
- break;
- case "delete":
+ switch (method.ToLower())
+ {
+ case "head":
+ response = client.SendAsync(new HttpRequestMessage(HttpMethod.Head, uri)).Result;
+ break;
+ case "delete":
response = client.SendAsync(new HttpRequestMessage(HttpMethod.Delete, uri) { Content = content }).Result;
- break;
- case "put":
+ break;
+ case "put":
response = client.PutAsync(uri, content).Result;
- break;
- case "post":
+ break;
+ case "post":
response = client.PostAsync(uri, content).Result;
- break;
- case "get":
+ break;
+ case "get":
response = client.GetAsync(uri).Result;
- break;
- }
+ break;
+ }
if (response == null)
- return ElasticsearchResponse.CreateError(_settings, null, method, uri.ToString(), data);
+ return ElasticsearchResponse.CreateError(_settings, null, method, uri.ToString(), data);
using (var result = response.Content.ReadAsStreamAsync().Result)
- return ElasticsearchResponse.Create(this._settings, (int)response.StatusCode, method, uri.ToString(), data, result);
- }
-
-
-
- public Task> Get(Uri uri, object deserializeState = null)
- {
- throw new NotImplementedException();
- }
-
- public ElasticsearchResponse GetSync(Uri uri, object deserializeState = null)
- {
- return this.DoSyncRequest("get", uri);
- }
-
- public Task> Head(Uri uri, object deserializeState = null)
- {
- throw new NotImplementedException();
- }
-
- public ElasticsearchResponse HeadSync(Uri uri, object deserializeState = null)
- {
- return this.DoSyncRequest("head", uri);
- throw new NotImplementedException();
- }
-
- public Task> Post(Uri uri, byte[] data, object deserializeState = null)
- {
- throw new NotImplementedException();
- }
-
- public ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializeState = null)
- {
- return this.DoSyncRequest("post", uri, data);
- throw new NotImplementedException();
- }
-
- public Task> Put(Uri uri, byte[] data, object deserializeState = null)
- {
- throw new NotImplementedException();
- }
-
- public ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializeState = null)
- {
- return this.DoSyncRequest("put", uri, data);
- throw new NotImplementedException();
- }
-
- public Task> Delete(Uri uri, object deserializeState = null)
- {
- throw new NotImplementedException();
- }
-
- public ElasticsearchResponse DeleteSync(Uri uri, object deserializeState = null)
- {
- return this.DoSyncRequest("delete", uri);
- throw new NotImplementedException();
- }
-
- public Task> Delete(Uri uri, byte[] data, object deserializeState = null)
- {
- throw new NotImplementedException();
- }
-
- public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializeState = null)
- {
- return this.DoSyncRequest("delete", uri, data);
- throw new NotImplementedException();
- }
-
- public bool Ping(Uri uri)
- {
- throw new NotImplementedException();
- }
-
- public IList Sniff(Uri uri)
- {
- throw new NotImplementedException();
- }
- }
+ {
+ var cs = ElasticsearchResponse.Create(this._settings, (int)response.StatusCode, method, uri.ToString(), data, result);
+ return cs;
+ }
+ }
+
+
+
+ public Task> Get(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public ElasticsearchResponse GetSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> Head(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public ElasticsearchResponse HeadSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> Post(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public ElasticsearchResponse PostSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> Put(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public ElasticsearchResponse PutSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> Delete(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public ElasticsearchResponse DeleteSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> Delete(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null)
+ {
+ throw new NotImplementedException();
+ }
+
+ }
}
diff --git a/src/Connections/Elasticsearch.Net.Connection.Thrift/Elasticsearch.Net.Connection.Thrift.csproj b/src/Connections/Elasticsearch.Net.Connection.Thrift/Elasticsearch.Net.Connection.Thrift.csproj
index 2db5acb1acc..bedf35ad5d9 100644
--- a/src/Connections/Elasticsearch.Net.Connection.Thrift/Elasticsearch.Net.Connection.Thrift.csproj
+++ b/src/Connections/Elasticsearch.Net.Connection.Thrift/Elasticsearch.Net.Connection.Thrift.csproj
@@ -69,7 +69,8 @@
False..\..\..\dep\NetReflector.1.1.2009\lib\net20\NetReflector.dll
-
+
+ False..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net40\Newtonsoft.Json.dll
diff --git a/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs b/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs
index 6b1ea02dd8a..08fc96415b2 100644
--- a/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs
+++ b/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs
@@ -45,7 +45,7 @@ public ThriftConnection(IConnectionConfigurationValues connectionSettings)
#region IConnection Members
- public Task> Get(Uri uri, object deserializationState = null)
+ public Task> Get(Uri uri, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.GET;
@@ -53,13 +53,13 @@ public Task> Get(Uri uri, object deserializationStat
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return Task.Factory.StartNew>(() =>
+ return Task.Factory.StartNew>(() =>
{
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
});
}
- public Task> Head(Uri uri, object deserializationState = null)
+ public Task> Head(Uri uri, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.HEAD;
@@ -67,13 +67,13 @@ public Task> Head(Uri uri, object deserializationSta
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return Task.Factory.StartNew>(()=>
+ return Task.Factory.StartNew>(()=>
{
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
});
}
- public ElasticsearchResponse GetSync(Uri uri, object deserializationState = null)
+ public ElasticsearchResponse GetSync(Uri uri, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.GET;
@@ -81,10 +81,10 @@ public ElasticsearchResponse GetSync(Uri uri, object deserializationState
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
}
- public ElasticsearchResponse HeadSync(Uri uri, object deserializationState = null)
+ public ElasticsearchResponse HeadSync(Uri uri, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.HEAD;
@@ -92,10 +92,10 @@ public ElasticsearchResponse HeadSync(Uri uri, object deserializationState
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
}
- public Task> Post(Uri uri, byte[] data, object deserializationState = null)
+ public Task> Post(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.POST;
@@ -104,12 +104,12 @@ public Task> Post(Uri uri, byte[] data, object deser
restRequest.Body = data;
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return Task.Factory.StartNew>(() =>
+ return Task.Factory.StartNew>(() =>
{
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
});
}
- public Task> Put(Uri uri, byte[] data, object deserializationState = null)
+ public Task> Put(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.PUT;
@@ -118,12 +118,12 @@ public Task> Put(Uri uri, byte[] data, object deseri
restRequest.Body = data;
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return Task.Factory.StartNew>(() =>
+ return Task.Factory.StartNew>(() =>
{
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
});
}
- public Task> Delete(Uri uri, byte[] data, object deserializationState = null)
+ public Task> Delete(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.DELETE;
@@ -132,13 +132,13 @@ public Task> Delete(Uri uri, byte[] data, object des
restRequest.Body = data;
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return Task.Factory.StartNew>(() =>
+ return Task.Factory.StartNew>(() =>
{
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
});
}
- public ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializationState = null)
+ public ElasticsearchResponse PostSync(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.POST;
@@ -147,9 +147,9 @@ public ElasticsearchResponse PostSync(Uri uri, byte[] data, object deseria
restRequest.Body = data;
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
}
- public ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializationState = null)
+ public ElasticsearchResponse PutSync(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.PUT;
@@ -158,9 +158,9 @@ public ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserial
restRequest.Body = data;
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
}
- public Task> Delete(Uri uri, object deserializationState = null)
+ public Task> Delete(Uri uri, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.DELETE;
@@ -168,13 +168,13 @@ public Task> Delete(Uri uri, object deserializationS
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return Task.Factory.StartNew>(() =>
+ return Task.Factory.StartNew>(() =>
{
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
});
}
- public ElasticsearchResponse DeleteSync(Uri uri, object deserializationState = null)
+ public ElasticsearchResponse DeleteSync(Uri uri, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.DELETE;
@@ -182,9 +182,9 @@ public ElasticsearchResponse DeleteSync(Uri uri, object deserializationSta
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
}
- public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializationState = null)
+ public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null)
{
var restRequest = new RestRequest();
restRequest.Method = Method.DELETE;
@@ -193,35 +193,9 @@ public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deser
restRequest.Body = data;
restRequest.Headers = new Dictionary();
restRequest.Headers.Add("Content-Type", "application/json");
- return this.Execute(restRequest, deserializationState);
+ return this.Execute(restRequest, deserializationState);
}
- public bool Ping(Uri uri)
- {
- var restRequest = new RestRequest();
- restRequest.Method = Method.HEAD;
- restRequest.Uri = uri;
-
- restRequest.Headers = new Dictionary();
- restRequest.Headers.Add("Content-Type", "application/json");
- var r = this.Execute