Beispiel #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();
        }
Beispiel #2
0
        public void ComputeAggregateNameReturnsFourthTokenOfTypeQualifiedNameMadeOfExactlyFiveTokens()
        {
            var sut = new NamingConventionSpy();

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