public void should_indicate_failure_when_input_property_is_not_unique()
		{
			var specification = new EntitySpecificationOfGuid<TestModel>();

			var counter = EntityCounterSpy<TestModel>.With().StubbedCount(1);

			var checker = new UniquenessChecker(counter);
			var result = checker.IsUnique(specification);

			result.ShouldBeFalse();

			counter.Specification.ShouldBeTheSameAs(specification);
		}
        public void should_indicate_failure_when_input_property_is_not_unique()
        {
            var specification = new EntitySpecificationOfGuid <TestModel>();

            var counter = EntityCounterSpy <TestModel> .With().StubbedCount(1);

            var checker = new UniquenessChecker(counter);
            var result  = checker.IsUnique(specification);

            result.ShouldBeFalse();

            counter.Specification.ShouldBeTheSameAs(specification);
        }
		public void should_indicate_success_when_input_has_a_unique_property()
		{
			var specification = new EntitySpecificationOfGuid<TestModel>();

			var counter = EntityCounterSpy<TestModel>.With().StubbedCount(0);

			var checker = new UniquenessChecker(counter);
			var result = checker.IsUnique(specification);

			result.ShouldBeTrue();

			counter.Specification.ShouldBeTheSameAs(specification);
		}
        public void should_indicate_success_when_input_has_a_unique_property()
        {
            var specification = new EntitySpecificationOfGuid <TestModel>();

            var counter = EntityCounterSpy <TestModel> .With().StubbedCount(0);

            var checker = new UniquenessChecker(counter);
            var result  = checker.IsUnique(specification);

            result.ShouldBeTrue();

            counter.Specification.ShouldBeTheSameAs(specification);
        }