//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: protected void startup(StartupData data) throws Throwable protected internal override void Startup(StartupData data) { MadeUpCommunicationInterface implementation = new MadeUpServerImplementation(newStoreIdForCurrentVersion(data.CreationTime, data.StoreId, data.CreationTime, data.StoreId)); MadeUpServer localServer = new MadeUpServer(implementation, data.Port, data.InternalProtocolVersion, data.ApplicationProtocolVersion, TxChecksumVerifier_Fields.AlwaysMatch, data.ChunkSize); localServer.Init(); localServer.Start(); // The field being non null is an indication of startup, so assign last _server = localServer; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void clientGetResponseFromServerViaComLayer() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ClientGetResponseFromServerViaComLayer() { MadeUpServerImplementation serverImplementation = new MadeUpServerImplementation(_storeIdToUse); MadeUpServer server = _builder.server(serverImplementation); MadeUpClient client = _builder.client(); AddToLifeAndStart(server, client); int value1 = 10; int value2 = 5; Response <int> response = client.Multiply(10, 5); WaitUntilResponseHasBeenWritten(server, 1000); assertEquals(( int? )(value1 * value2), response.ResponseConflict()); assertTrue(serverImplementation.GotCalled()); assertTrue(server.ResponseHasBeenWritten()); }