private static void AddGitChangeTypes(IInitializationExpression initializer) { initializer.InstanceOf<IGitChangedFile>().Is.OfConcreteType<Add>().WithName("A"); initializer.InstanceOf<IGitChangedFile>().Is.OfConcreteType<Modify>().WithName("M"); initializer.InstanceOf<IGitChangedFile>().Is.OfConcreteType<Delete>().WithName("D"); initializer.InstanceOf<IGitChangedFile>().Is.OfConcreteType<RenameEdit>().WithName("R"); }
private static void Initialize(IInitializationExpression initializer) { initializer.Scan(Initialize); initializer.ForRequestedType<TextWriter>().TheDefault.Is.ConstructedBy(() => Console.Out); initializer.InstanceOf<IGitRepository>().Is.OfConcreteType<GitRepository>(); AddGitChangeTypes(initializer); DoCustomConfiguration(initializer); }