public void has_deprecated_api_version_should_add_group_version_parts_with_status()
        {
            // arrange
            var controllerBuilder = new TestControllerApiVersionConventionBuilder();

            // act
            controllerBuilder.HasDeprecatedApiVersion(2016, 9, 10, "alpha");

            // assert
            controllerBuilder.ProtectedDeprecatedVersions.Single().Should().Be(new ApiVersion(new DateTime(2016, 9, 10), "alpha"));
        }
        public void has_deprecated_api_version_should_add_major_and_minor_version_with_status()
        {
            // arrange
            var controllerBuilder = new TestControllerApiVersionConventionBuilder();

            // act
            controllerBuilder.HasDeprecatedApiVersion(1, 5, "rc");

            // assert
            controllerBuilder.ProtectedDeprecatedVersions.Single().Should().Be(new ApiVersion(1, 5, "rc"));
        }
        public void has_deprecated_api_version_should_add_group_version()
        {
            // arrange
            var controllerBuilder = new TestControllerApiVersionConventionBuilder();
            var groupVersion      = new DateTime(2016, 9, 10);

            // act
            controllerBuilder.HasDeprecatedApiVersion(groupVersion);

            // assert
            controllerBuilder.ProtectedDeprecatedVersions.Single().Should().Be(new ApiVersion(groupVersion));
        }