예제 #1
0
 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 };
 }
예제 #2
0
        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
            };
        }