36 references to MockProjectItemLinkRemoter
Microsoft.Build.Engine.OM.UnitTests (36)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (2)
40
public MockProjectItemLink(
MockProjectItemLinkRemoter
proxy, IImportHolder holder)
48
public
MockProjectItemLinkRemoter
Proxy { get; }
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (30)
48
public ICollection<
MockProjectItemLinkRemoter
> Items => this.OwningCollection.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Source.Items);
50
public ICollection<
MockProjectItemLinkRemoter
> ItemsIgnoringCondition => this.OwningCollection.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Source.ItemsIgnoringCondition);
64
public ICollection<
MockProjectItemLinkRemoter
> AllEvaluatedItems => this.OwningCollection.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Source.AllEvaluatedItems);
72
public IList<
MockProjectItemLinkRemoter
> AddItem(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
73
=> this.OwningCollection.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Source.AddItem(itemType, unevaluatedInclude, metadata));
74
public IList<
MockProjectItemLinkRemoter
> AddItemFast(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
75
=> this.OwningCollection.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Source.AddItemFast(itemType, unevaluatedInclude, metadata));
79
public ICollection<
MockProjectItemLinkRemoter
> GetItems(string itemType)
80
=> this.OwningCollection.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Source.GetItems(itemType));
82
public ICollection<
MockProjectItemLinkRemoter
> GetItemsByEvaluatedInclude(string evaluatedInclude)
83
=> this.OwningCollection.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Source.GetItemsByEvaluatedInclude(evaluatedInclude));
85
public ICollection<
MockProjectItemLinkRemoter
> GetItemsIgnoringCondition(string itemType)
86
=> this.OwningCollection.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Source.GetItemsIgnoringCondition(itemType));
97
public bool RemoveItem(
MockProjectItemLinkRemoter
item) => this.Source.RemoveItem(this.OwningCollection.Import<ProjectItem,
MockProjectItemLinkRemoter
>(item));
99
public void RemoveItems(IEnumerable<
MockProjectItemLinkRemoter
> items)
100
=> this.Source.RemoveItems(this.OwningCollection.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(items));
148
public override ICollection<ProjectItem> Items => this.Linker.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Proxy.Items);
150
public override ICollection<ProjectItem> ItemsIgnoringCondition => this.Linker.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Proxy.ItemsIgnoringCondition);
164
=> this.Linker.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Proxy.AllEvaluatedItems);
177
=> this.Linker.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Proxy.AddItem(itemType, unevaluatedInclude, metadata));
180
=> this.Linker.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Proxy.AddItemFast(itemType, unevaluatedInclude, metadata));
218
=> this.Linker.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Proxy.GetItems(itemType));
220
=> this.Linker.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Proxy.GetItemsByEvaluatedInclude(evaluatedInclude));
223
=> this.Linker.ImportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(this.Proxy.GetItemsIgnoringCondition(itemType));
235
=> this.Proxy.RemoveItem(this.Linker.Export<ProjectItem,
MockProjectItemLinkRemoter
>(item));
238
=> this.Proxy.RemoveItems(this.Linker.ExportCollection<ProjectItem,
MockProjectItemLinkRemoter
>(items));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectMetadataLink.cs (4)
34
return this.OwningCollection.Export<ProjectItem,
MockProjectItemLinkRemoter
>(itemParent);
70
var
itemParent = parentRemoter as
MockProjectItemLinkRemoter
;
73
return this.Linker.Import<ProjectItem,
MockProjectItemLinkRemoter
>(itemParent);