Пример #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);