FakeServiceProvider - класс |
Пространство имён: PZone.Xrm.Testing
public class FakeServiceProvider : IServiceProvider
Тип FakeServiceProvider предоставляет следующие члены.
Имя | Описание | |
---|---|---|
![]() | FakeServiceProvider |
Конструтор класса.
|
Имя | Описание | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Унаследован от Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object.) |
![]() | GetHashCode | Serves as the default hash function. (Унаследован от Object.) |
![]() | GetService | Gets the service object of the specified type. |
![]() | GetType | Gets the Type of the current instance. (Унаследован от Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object.) |
![]() | ToString | Returns a string that represents the current object. (Унаследован от Object.) |
var plugin = new MyPlugin(); var context = new FakePluginExecutionContext(); var factory = new FakeOrganizationServiceFactory(); var provider = new FakeServiceProvider(context, factory); plugin.Execute(provider);