public void ComputeApplicationNameReturnsGivenName()
        {
            var applicationBindingMock = new Mock <IApplicationBinding <NamingConventionDouble> >();

            var sut = new NamingConventionDouble {
                ApplicationName = "SampleApplicationName"
            };

            Assert.That(sut.ComputeApplicationNameSpy(applicationBindingMock.Object), Is.EqualTo("SampleApplicationName"));
        }
        public void ComputeApplicationNameReturnsTypeNameIfNotGiven()
        {
            var applicationBindingMock = new Mock <IApplicationBinding <NamingConventionDouble> >();

            applicationBindingMock.Setup(ab => ab.GetType()).Returns(typeof(SampleApplication));

            var sut = new NamingConventionDouble();

            Assert.That(sut.ComputeApplicationNameSpy(applicationBindingMock.Object), Is.EqualTo("SampleApplication"));
        }