Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public TestItems(ServiceFixture fixture)
 {
     //this.fixture = fixture;
     client = fixture.GetItemClient();
 }