Exemplo n.º 1
0
        public void Should_return_mock_used_as_components_dependency()
        {
            using (var sut = new SutFactory <ComponentWithDependencies>())
            {
                var result = sut.Create();
                var mock   = sut.GetMock <IDependency>();

                result.Dependency.Should().Be(mock.Object);
            }
        }
Exemplo n.º 2
0
 public Mock <TDependency> GetMock <TDependency>() where TDependency : class
 {
     return(_sutFactory.GetMock <TDependency>());
 }