예제 #1
0
 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;
 }
예제 #2
0
 private SelectableClientBaseViewModel toSelectableViewModel(IThreadSafeClient client)
 => new SelectableClientViewModel(client.Id, client.Name, client.Id == selectedClientId);