Для изменения размера нажмите или перетащите

FakeServiceProvider - класс

Заглушка для классов, реализующих интерфейс IServiceProvider.
Иерархия наследования
SystemObject
  PZone.Xrm.TestingFakeServiceProvider

Пространство имён:  PZone.Xrm.Testing
Сборка:  PZone.SDK.Xrm.Testing (в PZone.SDK.Xrm.Testing.dll) Версия: 8.2.1.0 (8.2.1.0)
Синтаксис
C#
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.)
В начало страницы
Примеры
C#
var plugin = new MyPlugin();

var context = new FakePluginExecutionContext();
var factory = new FakeOrganizationServiceFactory();
var provider = new FakeServiceProvider(context, factory);

plugin.Execute(provider);
См. также