public ServiceFixture() { // This is the service startup handler = new ServiceHandler(); handler.Startup(); // This is the client startup string connection = string.Format("{0}:{1}", localhost_ip, port); channel = new Channel(connection, ChannelCredentials.Insecure); itemClient = new ItemRepository.ItemRepositoryClient(channel); tradeClient = new TradeService.TradeServiceClient(channel); }
public Need4Service() { string serverAddress = "https://localhost:50051"; channel = GrpcChannel.ForAddress(serverAddress); itemClient = new ItemRepository.ItemRepositoryClient(channel); tradeClient = new TradeService.TradeServiceClient(channel); saleClient = new SaleService.SaleServiceClient(channel); userClient = new UserService.UserServiceClient(channel); permissionClient = new PermissionService.PermissionServiceClient(channel); activityClient = new ActivityService.ActivityServiceClient(channel); communityClient = new CommunityService.CommunityServiceClient(channel); }
public TestItems(ServiceFixture fixture) { //this.fixture = fixture; client = fixture.GetItemClient(); }