public void InvokingANewServiceShouldAddItToEventHistory() { LastServiceCallStatus callStatus = serviceExecution.Invoking(new TestService(), @class.GetMethod("Method").MethodInfo); serviceExecution.Invoked(null); Assert.AreEqual(1, executionHistory.ServiceCalls.Count); Assert.AreEqual(false, callStatus.WasExecuted); }
public void InvokingANewServiceShouldAddItToEventHistory() { var callStatus = serviceExecution.Invoking(new TestService(), type.GetMethod("Method")); serviceExecution.Invoked(null); Assert.That(executionHistory.ServiceCalls, Has.Count.EqualTo(1)); Assert.That(callStatus.WasExecuted, Is.False); }