public AddComponent ( Mock |
||
component | Mock |
The component to add. |
Результат |
/// <summary> /// Builds the UserForm, adds it to the project, /// and returns a <see cref="MockProjectBuilder"/> /// to continue adding components to the project. /// </summary> /// <returns></returns> public MockProjectBuilder MockProjectBuilder() { _mockProjectBuilder.AddComponent(Build()); return(_mockProjectBuilder); }
/// <summary> /// Builds the UserForm, adds it to the project, /// and returns a <see cref="MockProjectBuilder"/> /// to continue adding components to the project. /// </summary> /// <returns></returns> public MockProjectBuilder AddFormToProjectBuilder() { (var component, var codeModule) = Build(); _mockProjectBuilder.AddComponent(component, codeModule); return(_mockProjectBuilder); }