예제 #1
0
        public ViewConventions()
        {
            Must
            .HaveNamespaceStartsWith("Hexenstein.UI")
            .HaveNameEndWith("View");

            Should
            .BeAConcreteClass();

            BaseName = t => t.Name.Substring(0, t.Name.Length - 4);

            Variants
            .StartWithBaseName();
        }
예제 #2
0
        public ViewModelConventions()
        {
            Must
            .HaveNamespaceStartsWith("Hexenstein.UI")
            .HaveNameEndWith("ViewModel");

            Should
            .BeAConcreteClass()
            .Implement <INotifyPropertyChanged>();

            BaseName = t => t.Name.Substring(0, t.Name.Length - 9);

            Variants
            .StartWithBaseName();
        }
예제 #3
0
        public AttachmentConventions()
        {
            Must
            .HaveNamespaceStartsWith("Hexenstein.UI")
            .HaveNameEndWith("Attachment");

            Should
            .BeAConcreteClass()
            .Implement <IAttachment>();

            BaseName = t => t.Name.Substring(0, t.Name.Length - 10);

            Variants
            .StartWithBaseName();
        }