static void Main(string[] args)
        {
            SomeImplementation s = new SomeImplementation();

            s.DoSomething(new SomeActualData());
            s.DoSomething(new SomeOtherData());
            Console.ReadLine();
        }
Esempio n. 2
0
        public void Implement_Should_CauseImplementedClassToBeUsed()
        {
            // Arrange.
            var moqzilla = new Mocker();
            var myObj    = new SomeImplementation();

            // Act.
            moqzilla.Implement <ISomeImplementation>(myObj);
            var output = moqzilla.Create <SomeClassWithSomeImplementationDependency>();

            // Assert.
            output.SomeImplementation.Should().Be(myObj);
        }
Esempio n. 3
0
 public string DoSomething(string message)
 {
     ISomeInterface dependency = new SomeImplementation();
     return dependency.DoStuff(message);
 }
Esempio n. 4
0
        public string DoSomething(string message)
        {
            ISomeInterface dependency = new SomeImplementation();

            return(dependency.DoStuff(message));
        }