public void Server_Creating() { // Prepare RemotingServer server = this._Provider.GetRequiredService <RemotingServer>(); // Pre-validate Assert.False(server.IsEnable()); // Perform server.Start(); // Post-validate Assert.True(server.IsEnable()); server.Stop(); }
public void Server_Client_Start_Stop() { int i = 0; while (i < 3) { // Prepare RemotingServer server = this._Provider.GetRequiredService <RemotingServer>(); server.Start(); IRemotingClient client = this._Provider.GetRequiredService <IRemotingClient>(); // Pre-validate client.CheckBindings(); // Perform client.Dispose(); server.Stop(); // Post-validate Assert.False(server.IsEnable()); } }