public void Getting_type_for_registered_contract_returns_type()
        {
            var fakeContractType = typeof(FakeContract1);
            var sut = new DefaultContractsRegistry(fakeContractType.Assembly);

            var contractType = sut.GetType("FakeContract1");

            Assert.Equal(contractType, fakeContractType);
        }
        public void Getting_type_for_not_registered_contract_name_throws_NullReferenceException()
        {
            var sut = new DefaultContractsRegistry();

            Assert.Throws <NullReferenceException>(() =>
            {
                sut.GetType("not registered_contract name");
            });
        }