public void AsTest() { var manager = A.Dummy<IRegistrationFinisher>(); var registration = new StartedRegistration(manager, typeof(TestType)); registration.As<ITestType1>(); A.CallTo(() => manager.FinishRegistration(typeof(ITestType1), registration)).MustHaveHappened(Repeated.Exactly.Once); }