/// <summary>
        /// constructor
        /// </summary>
        /// <param name="serverAdress">Die Server-Adresse, falls nicht übergebe
        /// wird "https://localhost:5001" benutzt</param>
        public GrpcModelDataService(string serverAdress = "https://localhost:5001")
        {
            Channel = GrpcChannel.ForAddress(serverAdress);

            AutoClient     = new AutoService.AutoServiceClient(Channel);
            CustomerClient = new KundeService.KundeServiceClient(Channel);
        }
Exemplo n.º 2
0
 public ReservationServiceTests(ServiceTestFixture serviceTestFixture)
     : base(serviceTestFixture)
 {
     _target      = new ReservationService.ReservationServiceClient(Channel);
     _autoClient  = new AutoService.AutoServiceClient(Channel);
     _kundeClient = new KundeService.KundeServiceClient(Channel);
 }
        public ReservationServiceTests(ServiceTestFixture serviceTestFixture, ITestOutputHelper testOutputHelper)
            : base(serviceTestFixture)
        {
            _testOutputHelper = testOutputHelper;
            _target           = new ReservationService.ReservationServiceClient(Channel);
            _autoClient       = new AutoService.AutoServiceClient(Channel);
            _kundeClient      = new KundeService.KundeServiceClient(Channel);
            int year = DateTime.Now.Year + 1;

            _von = Timestamp.FromDateTime(DateTime.SpecifyKind(new DateTime(year, 01, 10), DateTimeKind.Utc));
            _bis = Timestamp.FromDateTime(DateTime.SpecifyKind(new DateTime(year, 01, 20), DateTimeKind.Utc));
        }
Exemplo n.º 4
0
 public CarServiceTests(ServiceTestFixture serviceTestFixture)
     : base(serviceTestFixture)
 {
     _target = new AutoService.AutoServiceClient(Channel);
 }