public void ValidateStructureTest() { var log = A.Fake<ILog>(); var readableRepository = A.Fake<IReadableRepository<FakeClass>>(); var writableRepository = A.Fake<IWritableRepository<FakeClass>>(); var validator = A.Fake<IValidator<FakeClass>>(); var builder = new StructureBuilder<FakeClass>(log, readableRepository, writableRepository, validator); builder.ValidateStructure(); A.CallTo(() => validator.Validate(A<FakeClass>.Ignored)).MustHaveHappened(); }