public void AssertConfigurationIsValid()
        {
            ViewModelMapCreator mapCreator = new ViewModelMapCreator();

            mapCreator.CreateMappings();

            Mapper.AssertConfigurationIsValid();
        }
コード例 #2
0
        public void TestFixtureSetUp()
        {
            ModelMapCreator mapCreator = new ModelMapCreator();

            mapCreator.CreateMappings();

            ViewModelMapCreator vmMapCreator = new ViewModelMapCreator();

            vmMapCreator.CreateMappings();
        }
コード例 #3
0
        public static void Initialize()
        {
            IUnityContainer container = BuildUnityContainer();

            DependencyResolver.SetResolver(new UnityDependencyResolver(container));

            ModelMapCreator mapCreator = new ModelMapCreator();

            mapCreator.CreateMappings();

            ViewModelMapCreator viewModelMapCreator = new ViewModelMapCreator();

            viewModelMapCreator.CreateMappings();
        }