public CustomersHttpClientV1Test() { _persistence = new CustomersMemoryPersistence(); _controller = new CustomersController(); _client = new CustomersHttpClientV1(); _service = new CustomersHttpServiceV1(); IReferences references = References.FromTuples( new Descriptor("eic-customers", "persistence", "memory", "default", "1.0"), _persistence, new Descriptor("eic-customers", "controller", "default", "default", "1.0"), _controller, new Descriptor("eic-customers", "client", "http", "default", "1.0"), _client, new Descriptor("eic-customers", "service", "http", "default", "1.0"), _service ); _controller.SetReferences(references); _service.Configure(HttpConfig); _service.SetReferences(references); _client.Configure(HttpConfig); _client.SetReferences(references); _fixture = new CustomersClientV1Fixture(_client); _service.OpenAsync(null).Wait(); _client.OpenAsync(null).Wait(); }
public CustomersDirectClientV1Test() { _persistence = new CustomersMemoryPersistence(); _controller = new CustomersController(); _client = new CustomersDirectClientV1(); IReferences references = References.FromTuples( new Descriptor("eic-customers", "persistence", "memory", "default", "1.0"), _persistence, new Descriptor("eic-customers", "controller", "default", "default", "1.0"), _controller, new Descriptor("eic-customers", "client", "direct", "default", "1.0"), _client ); _controller.SetReferences(references); _client.SetReferences(references); _fixture = new CustomersClientV1Fixture(_client); _client.OpenAsync(null).Wait(); }