public EmailHttpClientV1Test() { _client = new EmailHttpClientV1(); _client.Configure(HttpConfig); _fixture = new EmailClientFixtureV1(_client); _client.OpenAsync(null); }
public EmailDirectClientV1Test() { //var persistence = new EmailMemoryPersistence(); //var controller = new EmailController(); //References references = References.FromTuples( // new Descriptor("pip-services-settings", "persistence", "memory", "default", "1.0"), persistence, // new Descriptor("pip-services-settings", "controller", "default", "default", "1.0"), controller //); //controller.SetReferences(references); var logger = new ConsoleLogger(); References references = References.FromTuples( new Descriptor("pip-services", "logger", "console", "default", "1.0"), logger ); _client = new EmailDirectClientV1(); _client.SetReferences(references); _fixture = new EmailClientFixtureV1(_client); var clientTask = _client.OpenAsync(null); //clientTask.Wait(); }