Esempio n. 1
0
        public void Ctor_should_persist_target_type_to_target_type_property()
        {
            var builder =
                new TypeDefaultConventionBuilder(typeof(string));

            var convention =
                builder.GetConvention();

            convention.TargetType.ShouldBeOfType <string>();
        }
        public void Ctor_should_persist_target_type_to_target_type_property()
        {
            var builder =
                new TypeDefaultConventionBuilder(typeof(string));

            var convention =
                builder.GetConvention();

            convention.TargetType.ShouldBeOfType<string>();
        }
Esempio n. 3
0
        public void ContractType_should_persist_type_in_contract_type_property()
        {
            var builder =
                new TypeDefaultConventionBuilder(typeof(string));

            builder
            .ContractType <int>();

            var convention =
                builder.GetConvention();

            convention.ContractType.ShouldBeOfType <int>();
        }
Esempio n. 4
0
        public void ContractName_should_persist_name_in_contract_name_property()
        {
            const string contractName = "Contract";

            var builder =
                new TypeDefaultConventionBuilder(typeof(string));

            builder
            .ContractName(contractName);

            var convention =
                builder.GetConvention();

            convention.ContractName.ShouldEqual(contractName);
        }
        public void ContractName_should_persist_name_in_contract_name_property()
        {
            const string contractName = "Contract";

            var builder =
                new TypeDefaultConventionBuilder(typeof(string));

            builder
                .ContractName(contractName);
            
            var convention =
                builder.GetConvention();

            convention.ContractName.ShouldEqual(contractName);
        }
        public void ContractType_should_persist_type_in_contract_type_property()
        {
            var builder =
                new TypeDefaultConventionBuilder(typeof(string));

            builder
                .ContractType<int>();

            var convention =
                builder.GetConvention();

            convention.ContractType.ShouldBeOfType<int>();
        }