FakeOrganizationServiceFactory - класс |
Пространство имён: PZone.Xrm.Testing
public class FakeOrganizationServiceFactory : IOrganizationServiceFactory
Тип FakeOrganizationServiceFactory предоставляет следующие члены.
Имя | Описание | |
---|---|---|
![]() | FakeOrganizationServiceFactory |
Конструтор класса без параметров.
|
![]() | FakeOrganizationServiceFactory(IOrganizationService) |
Конструтор класса с указанием экземпляра сервиса.
|
Имя | Описание | |
---|---|---|
![]() | CreateOrganizationService |
Получение экземпляра сервиса.
|
![]() | 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.) |
![]() | 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);