public MockProject( long id, IThreadSafeWorkspace workspace, IThreadSafeClient client = null, SyncStatus syncStatus = SyncStatus.InSync ) : this() { Id = id; Workspace = workspace; WorkspaceId = workspace.Id; Client = client; ClientId = client?.Id; SyncStatus = syncStatus; }
private SelectableClientBaseViewModel toSelectableViewModel(IThreadSafeClient client) => new SelectableClientViewModel(client.Id, client.Name, client.Id == selectedClientId);