public void DeveRetornarAlteradoQuandoPreenchidoComOutraObjeto()
        {
            var entity   = UserMock.CreateUser1();
            var expected = UserDtoMock.CreateUser1();
            var actual   = mapper.ToMap(entity, UserDtoMock.CreateUser2());

            AssertEqual(expected, actual);
        }
        public void DeveRetornarPreenchidoQuandoPreenchido()
        {
            var entity   = UserMock.CreateUser1();
            var expected = UserDtoMock.CreateUser1();
            var actual   = mapper.ToMap(entity);

            AssertEqual(expected, actual);
        }
        public void DeveRetornarListaPreenchidaQuandoPreenchida()
        {
            var entity   = UserMock.CreateUser1();
            var expected = UserDtoMock.CreateUser1();
            var actual   = mapper.ToMapList(new List <User> {
                entity
            });

            AssertEqual(expected, actual.FirstOrDefault());
        }