public BeaconsHttpClientV1Test() { _persistence = new BeaconsMemoryPersistence(); _controller = new BeaconsController(); _client = new BeaconsHttpClientV1(); _service = new BeaconsHttpServiceV1(); IReferences references = References.FromTuples( new Descriptor("beacons", "persistence", "memory", "default", "1.0"), _persistence, new Descriptor("beacons", "controller", "default", "default", "1.0"), _controller, new Descriptor("beacons", "client", "http", "default", "1.0"), _client, new Descriptor("beacons", "service", "http", "default", "1.0"), _service ); _controller.SetReferences(references); _service.Configure(HttpConfig); _service.SetReferences(references); _client.Configure(HttpConfig); _client.SetReferences(references); _fixture = new BeaconsClientV1Fixture(_client); _service.OpenAsync(null).Wait(); _client.OpenAsync(null).Wait(); }
public BeaconsDirectClientV1Test() { _persistence = new BeaconsMemoryPersistence(); _controller = new BeaconsController(); _client = new BeaconsDirectClientV1(); IReferences references = References.FromTuples( new Descriptor("beacons", "persistence", "memory", "default", "1.0"), _persistence, new Descriptor("beacons", "controller", "default", "default", "1.0"), _controller, new Descriptor("beacons", "client", "direct", "default", "1.0"), _client ); _controller.SetReferences(references); _client.SetReferences(references); _fixture = new BeaconsClientV1Fixture(_client); _client.OpenAsync(null).Wait(); }
public BeaconsMockClientV1Test() { _client = new BeaconsMockClientV1(); _fixture = new BeaconsClientV1Fixture(_client); }