public void Setup()
 {
     var fakeRepository = MockRepository.GenerateStub<IMapperRepository>();
     _mapper = new TypeMapper(fakeRepository);
     _dummyA = new DummyA { Name = "dummy A", Family = "family A", Age = 37 };
     _dummyB = new DummyB { Name = "dummy A", Family = "family A", Age = 37 };
     _dummyC = new DummyC { Name = "dummy A", Family = "family A", Address = null };
 }
 public void Init()
 {
     _dummay = new DummyB {
         Name = "dummy Name", Family = "dummy family", Age = 20
     };
     _repositoryMapper = MockRepository.GenerateMock <IMapperRepository>();
     _mapper           = new TypeMapper(_repositoryMapper);
 }
 private static DummyA ConvertTest(DummyB dummy)
 {
     return new DummyA
     {
         Name = dummy.Name,
         Family = dummy.Family,
         Age = dummy.Age
     };
 }
 private static DummyA ConvertTest(DummyB dummy)
 {
     return(new DummyA
     {
         Name = dummy.Name,
         Family = dummy.Family,
         Age = dummy.Age
     });
 }
        public void Setup()
        {
            var fakeRepository = MockRepository.GenerateStub <IMapperRepository>();

            _mapper = new TypeMapper(fakeRepository);
            _dummyA = new DummyA {
                Name = "dummy A", Family = "family A", Age = 37
            };
            _dummyB = new DummyB {
                Name = "dummy A", Family = "family A", Age = 37
            };
            _dummyC = new DummyC {
                Name = "dummy A", Family = "family A", Address = null
            };
        }
 public void Init()
 {
     _dummay = new DummyB { Name = "dummy Name", Family = "dummy family", Age = 20 };
     _repositoryMapper = MockRepository.GenerateMock<IMapperRepository>();
     _mapper = new TypeMapper(_repositoryMapper);
 }