예제 #1
0
        public void ComputeAggregateNameReturnsNullWhenTypeQualifiedNameIsNotMadeOfExactlyFiveTokens()
        {
            var sut = new NamingConventionSpy();

            sut.ComputeAggregateNameSpy(typeof(SampleApplication)).Should().BeNull();
            sut.ComputeAggregateNameSpy(typeof(FinanceSampleApplication)).Should().BeNull();
            sut.ComputeAggregateNameSpy(typeof(StandaloneReceivePort)).Should().BeNull();
        }
예제 #2
0
        public void ComputeAggregateNameReturnsFourthTokenOfTypeQualifiedNameMadeOfExactlyFiveTokens()
        {
            var sut = new NamingConventionSpy();

            sut.ComputeAggregateNameSpy(typeof(TaxAgencyReceivePort)).Should().Be("Invoice");
        }