示例#1
0
        public void TestClassModelOtherAssemblyUsingInstance()
        {
            IMapper       mapper    = AutoMapperFactory.Create();
            TestClassFour instance1 = new TestClassFour {
                Id = 2
            };
            TestClassThree instance2 = mapper.Map <TestClassThree>(instance1);

            Assert.IsNotNull(instance2);
            Assert.AreEqual(instance2.Id, 2);
        }
示例#2
0
        public void InstanceOf_CreatesInstanceUsingProtectedConstructor()
        {
            TestClassFour <bool> instance = Instance.Of <TestClassFour <bool> >();

            instance.Set.ShouldNotBeNull();
        }