using System.Collections.Generic; using System.Threading.Tasks; using Prise.Plugin; namespace Prise.Tests.Plugins { [Plugin(PluginType = typeof(ITestPlugin))] public class TestPluginActivation : ITestPlugin { private List data; [PluginActivated] public void Activated() { this.data = new List { new TestDto { Name = "TestPluginB Activated!" } }; } public Task Bar(TestDto dto) { return Task.FromResult(dto); } public Task> Bars(IEnumerable dtos) { return Task.FromResult(dtos); } public TestDto Foo(TestDto dto) { return dto; } public IEnumerable Foos(IEnumerable dtos) { return this.data; } public async Task> GetData(string filter) { return this.data; } public async Task GetStringAsync() { return "String"; } } }