/// <summary>
 /// Asserts that do was called.
 /// </summary>
 /// <param name="dummyService">The dummy service.</param>
 protected override void AssertDoWasCalled(IDummyService dummyService)
 {
     dummyService.Received().Do();
 }
 public HomeController(IDummyService dummyService)
 {
     _dummyService = dummyService;
 }
 /// <summary>
 /// Asserts that do was called.
 /// </summary>
 /// <param name="dummyService">The dummy service.</param>
 protected override void AssertDoWasCalled(IDummyService dummyService)
 {
     A.CallTo(() => dummyService.Do()).MustHaveHappened();
 }
 /// <summary>
 /// Asserts that do was called.
 /// </summary>
 /// <param name="dummyService">The dummy service.</param>
 protected abstract void AssertDoWasCalled(IDummyService dummyService);
 /// <summary>
 /// Initializes a new instance of the <see cref="DummyClass"/> class.
 /// </summary>
 /// <param name="dummyService">The dummy service.</param>
 public DummyClass(IDummyService dummyService)
 {
     this.DummyService = dummyService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DummyClass"/> class.
 /// </summary>
 /// <param name="dummyService">The dummy service.</param>
 /// <param name="dummyDelegate">The dummy delegate</param>
 public DummyClass(IDummyService dummyService, DummyDelegate dummyDelegate)
 {
     this.DummyService = dummyService;
     this.DummyDelegate = dummyDelegate;
 }
 /// <summary>
 /// Asserts that do was called.
 /// </summary>
 /// <param name="dummyService">The dummy service.</param>
 protected override void AssertDoWasCalled(IDummyService dummyService)
 {
     Mock.Get(dummyService).Verify(service => service.Do());
 }
 /// <summary>
 /// Asserts that do was called.
 /// </summary>
 /// <param name="dummyService">The dummy service.</param>
 protected override void AssertDoWasCalled(IDummyService dummyService)
 {
     dummyService.AssertWasCalled(s => s.Do());
 }
			public DummyClass(IDummyService dummyService)
			{
				DummyService = dummyService;
			}
 public MenuViewComponent(IDummyService service)
 {
     _service = service;
 }