Beispiel #1
0
 public int TestComplexData(string param1, int param2, ComplexData paramComplexData)
 {
     return param2;
 }
Beispiel #2
0
        public void TestLogInterceptor()
        {
            //ITestingClass main = container.Resolve<ITestingClass>();
            Assert.AreEqual(2 + 3, testingClass.TestMethod("1", 2, 3));

            testingClass = container.Resolve<ITestingClass>();
            Assert.AreEqual(8 + 3, testingClass.TestMethod(null, 8, 3));

            ComplexData complex = new ComplexData();
            complex.Prop1 = 1;
            complex.Prop2 = "Text";
            complex.Prop3 = TimeSpan.FromSeconds(12);
            complex.Prop4 = 12.2;

            Assert.AreEqual(2, testingClass.TestComplexData("1", 2, complex));

            Assert.IsNotNull(testingClass.NoParams());
        }