public void Initialize()
 {
     this.target = new AddNewNodeViewModel(
         Enumerable.Empty<IProductElement>(),
         Mocks.Of<IPatternElementInfo>().First(x => x.DisplayName == "Foo"),
         new Mock<IUserMessageService>().Object);
 }
            public void Initialize()
            {
                this.userMessageService = new Mock<IUserMessageService>();

                this.target = new AddNewNodeViewModel(
                    new[] { Mocks.Of<IProductElement>().First(x => x.InstanceName == "Foo1") },
                    Mocks.Of<IPatternElementInfo>().First(x => x.DisplayName == "Foo"),
                    this.userMessageService.Object);
            }