public void Setup() { var options = new DynamicOptions() { IsEnabled = true, }; var host = CreatePluginHost(options); var model = CreateModel(options, host); var vm = CreateViewModel(model); _vm = vm; var messageMetadataMock = new Mock <IMessageMetadata>(); messageMetadataMock.Setup(m => m.User).Returns(new UserTest("1")); messageMetadataMock.Setup(x => x.SiteContextGuid).Returns(Guid.NewGuid()); var messageMetadata = messageMetadataMock.Object; _messageMetadata = messageMetadata; var plugin = CreatePlugin(vm, model, options); _plugin = plugin; plugin.Host = host; plugin.OnLoaded(); }
public void Setup() { var options = new DynamicOptions() { IsEnabled = true, }; var host = CreatePluginHost(options); var model = CreateModel(options, host); var vm = CreateViewModel(model); _vm = vm; var plugin = CreatePlugin(vm, model, options); _plugin = plugin; plugin.Host = host; plugin.OnLoaded(); }